emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Trem <david.trem@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: How to set python version for org-babel
Date: Thu, 28 Jan 2010 18:55:07 +0100	[thread overview]
Message-ID: <4B61CF7B.7000608@gmail.com> (raw)
In-Reply-To: <87d40uxih3.fsf@gmail.com>

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

      reply	other threads:[~2010-01-28 17:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B61CF7B.7000608@gmail.com \
    --to=david.trem@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).