From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Trem Subject: Re: How to set python version for org-babel Date: Thu, 28 Jan 2010 18:55:07 +0100 Message-ID: <4B61CF7B.7000608@gmail.com> References: <4B61AABC.4080200@gmail.com> <87d40uxih3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NaYaP-0008Ay-1N for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 12:55:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NaYaK-000860-K6 for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 12:55:20 -0500 Received: from [199.232.76.173] (port=56803 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaYaJ-00085l-Md for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 12:55:15 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:50411) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NaYaI-0003xP-KR for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 12:55:15 -0500 Received: by ewy24 with SMTP id 24so1031497ewy.26 for ; Thu, 28 Jan 2010 09:55:10 -0800 (PST) In-Reply-To: <87d40uxih3.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 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