emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to set python version for org-babel
@ 2010-01-28 15:18 David Trem
  2010-01-28 15:28 ` Pierre de Buyl
  2010-01-28 17:11 ` Eric Schulte
  0 siblings, 2 replies; 4+ messages in thread
From: David Trem @ 2010-01-28 15:18 UTC (permalink / raw)
  To: emacs-orgmode

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 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to set python version for org-babel
  2010-01-28 15:18 How to set python version for org-babel David Trem
@ 2010-01-28 15:28 ` Pierre de Buyl
  2010-01-28 17:11 ` Eric Schulte
  1 sibling, 0 replies; 4+ messages in thread
From: Pierre de Buyl @ 2010-01-28 15:28 UTC (permalink / raw)
  To: David Trem; +Cc: emacs-orgmode

Hello,

Can you specify which version of Emacs you are using ?

I anticipate one of the aqua version: you need to set manually the  
path accessible to GUI apps in OS X: this is done by editing the file  
~/.MacOSX/environment.plist and adjust the path therein.

After you add the path to the macports executable directory (before "/ 
usr/bin" directory) the python command that is present there (if  
there is a python there, check with "which python" in a terminal)  
will be given priority.

HTH, and do not hesitate to ask for more details if needed,

Pierre

Le 28 janv. 10 à 16:18, David Trem a écrit :

> 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 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to set python version for org-babel
  2010-01-28 15:18 How to set python version for org-babel David Trem
  2010-01-28 15:28 ` Pierre de Buyl
@ 2010-01-28 17:11 ` Eric Schulte
  2010-01-28 17:55   ` David Trem
  1 sibling, 1 reply; 4+ messages in thread
From: Eric Schulte @ 2010-01-28 17:11 UTC (permalink / raw)
  To: David Trem; +Cc: emacs-orgmode

Hi David,

David Trem <david.trem@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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to set python version for org-babel
  2010-01-28 17:11 ` Eric Schulte
@ 2010-01-28 17:55   ` David Trem
  0 siblings, 0 replies; 4+ messages in thread
From: David Trem @ 2010-01-28 17:55 UTC (permalink / raw)
  To: emacs-orgmode

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.trem@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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-28 17:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-28 15:18 How to set python version for org-babel David Trem
2010-01-28 15:28 ` Pierre de Buyl
2010-01-28 17:11 ` Eric Schulte
2010-01-28 17:55   ` David Trem

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).