Getting IDLE 0.8 to recognize Pyhthon 2.2.1
Gerhard Häring
gerhard.haering at gmx.de
Tue Jul 9 03:29:35 EDT 2002
Brad Fonseca wrote in comp.lang.python:
> Gerhard Häring wrote:
>> * Brad Fonseca <linuxbrad at rogers.com> [2002-07-08 00:28 +0000]:
>>> I've upgraded to python 2.2.1 but when I start IDLE it still starts
>>> Python 2.1.1. How do I get IDLE to start Python 2.2
>>
>> Two possibilites.
>> [...]
>> 2) A little more hackish: Find your idle: "which idle". Then change the
>> first line from
>>
>> #! /usr/bin/python
>>
>> to
>>
>> #! /usr/bin/env python2.2
>
> To be more clear, I tried the second option and it doesn't work
> properly. How do I get idle to install on Mandrake. I used the
> tarball to install 2.2 in my /usr/local/src directory.
Well, you compiled Python yourself? Let's suppose your Python
executable ended up in /usr/local/bin. AFAIK IDLE is never installed
by the Python build process, but it exists in the Tools/idle in the
source distribution. Just invoke Tools/idle/idle with your Python 2.2
executable. Yes, Tools/idle/idle doesn't end in .py, but this doesn't
matter. If this works, you can then move Tools/idle outside of your
source tree if you like, and change its shebang line to your Python
2.2 installation.
Gerhard
--
mail: gerhard <at> bigfoot <dot> de registered Linux user #64239
web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9 3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
More information about the Python-list
mailing list