emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] How to set python version for org-babel


From: David Trem
Subject: Re: [Orgmode] How to set python version for org-babel
Date: Thu, 28 Jan 2010 18:55:07 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; fr; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1

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 <address@hidden> 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.
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode




reply via email to

[Prev in Thread] Current Thread [Next in Thread]