[Tutor] what is the easiest way to install different Python versions?
Albert-Jan Roskam
fomcl at yahoo.com
Sun Oct 12 15:18:47 CEST 2014
Regards,
Albert-Jan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a
fresh water system, and public health, what have the Romans ever done for us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
----- Original Message -----
> From: Joel Goldstick <joel.goldstick at gmail.com>
> To: Albert-Jan Roskam <fomcl at yahoo.com>
> Cc: Python Mailing List <tutor at python.org>
> Sent: Sunday, October 12, 2014 3:15 PM
> Subject: Re: [Tutor] what is the easiest way to install different Python versions?
>
> On Sun, Oct 12, 2014 at 8:35 AM, Albert-Jan Roskam
> <fomcl at yahoo.com.dmarc.invalid> wrote:
>> Hi,
>>
>> (sorry for cross-posting, sort of)
>>
>> A few days ago I needed to check whether some Python code ran with Python
> 2.6. What is the easiest way to install another Python version along side the
> default Python version? My own computer is Debian Linux 64 bit, but a
> platform-independent solution would be best.
>>
>> Possible solutions that I am aware of
>>
>> -make altinstall *). This is what I tried (see below), but not all modules
> could be built. I gave up because I was in a hurry
>> -Pythonbrew. This project is dead
>> -Deadsnakes
>> -Anaconda
>> -Tox? I only know this is as a cross-version/implementation test runner
>> -Vagrant. This is what I eventually did, and this was very simple. I ran
> Ubuntu 10.0.4 LTS, which uses Python 2.6, and used Vagrant SSH to run and check
> my code in Python 2.6 (and I replaced a dict comprehension with a list
> comprehension, for example)
>> - ...
>>
>> What is the recommended way? I don't expect/hope that I'd ever need
> something lower than Python 2.5
>>
>>
>
> Using virtualenvwrapper is easy and isolates your environment
>
> http://virtualenvwrapper.readthedocs.org/en/latest/index.html
But then it's still required that Python 2.6 is installed on my system, right?
This seems to confirm this: http://stackoverflow.com/questions/1534210/use-different-python-version-with-virtualenv
(I like the --python or -p flag of virtualenv and virtualenvwrapper though)
More information about the Tutor
mailing list