Thanks to Pierre and Eric help, I had all elements to solve my issue. But before explaining my solution let me give more detail on my setup: MacOsX 10.5.8 Emacs 23.1 (from macports)
I had to add in my .emacs (setq python-python-command "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python") and add PYTHONPATH variable to the ~/.MacOSX/environment.plist pointing to the corresponding python2.6 site-package folder. I'm not sure I understand what is going on. This looks like quite dirty fix but it works for now... Thanks again, David Le 28/01/10 18:11, Eric Schulte a écrit : > Hi David, > > David Trem <david.t...@gmail.com> writes: > >> Hi, >> >> I'm currently learning org-babel with python. >> I have several version of python installed on my Mac. >> One from apple and two from macports. >> I'd like to use python2.6 from macports. >> I tried to set the python-python-command > > On my system I believe the variable is named `python-command', maybe try > the following... > > (setq python-command "python2.6") > > Best -- Eric > >> variable to python2.6 >> but the python 2.5 from apple is still used by org-babel. >> >> I need some help to go forward. >> >> Thanks in advance, >> >> David >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode