all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrgdev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs uses an old version of python
Date: Mon, 01 Dec 2008 09:26:33 +0100	[thread overview]
Message-ID: <gh0757$kd3$1@news.motzarella.org> (raw)
In-Reply-To: mailman.1595.1228111500.26697.help-gnu-emacs@gnu.org

Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:

> John Seales <praxbaffle@hotmail.com> writes:
>
>> GNU emacs 22.1.1
>> on an Intel MacBook
>>
>> I've updated to Python 2.6, but emacs still is using 2.3. This is a problem because I need to use the newer features of the language. Looking in my /usr/bin/ directory, I see that 'python2.3' and 'pythonw2.3' are in there, along with just plain 'python'. Using sudo, I copied 'python2.6' and 'pythonw2.6' into /usr/bin, but still emacs calls the old version. Interestingly, the terminal application correctly uses the new version of python when I run it from there.
>>
>> I'm guessing I may need to move more files around and/or change my .emacs file. But how?
>
> Hi!
> with python-mode i use:
>
> ,----[ C-h v py-python-command RET ]
> | py-python-command is a variable defined in `python-mode.el'.
> | Its value is "ipython"
> | 
> | Documentation:
> | *Shell command used to start Python interpreter.
> | 
> | You can customize this variable.
> | 
> | ===*===*===*===*===*===*===*===*===*===*===
> `----
>
> for me it's ipython but it can be python2.5 or 6 ...

Alternatively leave it as python and have this in your ~/.python.py

,----
| import IPython,os
| 
| if os.path.isfile('.pythonrc.py'):
|     execfile('.pythonrc.py')
| 
| IPython.Shell.IPShell().mainloop(sys_exit=1)
`----



  parent reply	other threads:[~2008-12-01  8:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-30 21:51 emacs uses an old version of python John Seales
2008-11-30 22:34 ` Peter Dyballa
2008-12-01  6:00 ` Thierry Volpiatto
     [not found] ` <mailman.1595.1228111500.26697.help-gnu-emacs@gnu.org>
2008-12-01  8:26   ` Richard Riley [this message]
     [not found] <mailman.1577.1228082753.26697.help-gnu-emacs@gnu.org>
2008-12-01  0:52 ` Xah Lee

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

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

  git send-email \
    --in-reply-to='gh0757$kd3$1@news.motzarella.org' \
    --to=rileyrgdev@gmail.com \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.