Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79050 > unrolled thread
| Started by | Ned Batchelder <ned@nedbatchelder.com> |
|---|---|
| First post | 2014-10-13 10:31 -0400 |
| Last post | 2014-10-13 10:31 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: what is the easiest way to install multiple Python versions? Ned Batchelder <ned@nedbatchelder.com> - 2014-10-13 10:31 -0400
| From | Ned Batchelder <ned@nedbatchelder.com> |
|---|---|
| Date | 2014-10-13 10:31 -0400 |
| Subject | Re: what is the easiest way to install multiple Python versions? |
| Message-ID | <mailman.14824.1413210698.18130.python-list@python.org> |
On 10/12/14 9:33 AM, Albert-Jan Roskam wrote: > Hi, > > (sorry for cross-posting) > > 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 I use pythonz: http://saghul.github.io/pythonz/ It lets me specify not just the version I want, but the implementation I want: I can install CPython 2.6.1, PyPy 2.0.2, and Jython 2.5.3 all the same way. -- Ned Batchelder, http://nedbatchelder.com
Back to top | Article view | comp.lang.python
csiph-web