Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79050

Re: what is the easiest way to install multiple Python versions?

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'cpython': 0.05; 'subject:Python': 0.06; 'pypy': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'url:github': 0.09; 'python': 0.11; '(sorry': 0.16; '-make': 0.16; 'dict': 0.16; 'did,': 0.16; 'example)': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'simple.': 0.16; 'ssh': 0.16; 'subject:install': 0.16; 'subject:versions': 0.16; 'version?': 0.16; 'wrote:': 0.18; 'install': 0.23; 'header:User-Agent:1': 0.23; 'lets': 0.24; 'received:comcast.net': 0.24; 'specify': 0.24; '(see': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply- To:1': 0.27; 'tried': 0.27; 'am,': 0.29; 'along': 0.30; 'code': 0.31; 'subject:what': 0.31; 'way?': 0.31; 'run': 0.32; 'another': 0.32; 'linux': 0.33; 'ago': 0.33; 'subject:the': 0.34; "i'd": 0.34; 'could': 0.34; 'something': 0.35; 'test': 0.35; 'but': 0.35; 'version': 0.36; '2.6': 0.36; 'ubuntu': 0.36; 'possible': 0.36; 'subject:?': 0.36; 'hi,': 0.36; 'list': 0.37; 'project': 0.37; 'easiest': 0.38; 'needed': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'received:org': 0.40; 'days': 0.60; 'eventually': 0.60; 'lower': 0.61; 'side': 0.67; 'default': 0.69; '2.5.3': 0.84; 'want:': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ned Batchelder <ned@nedbatchelder.com>
Subject Re: what is the easiest way to install multiple Python versions?
Date Mon, 13 Oct 2014 10:31:28 -0400
References <1749456658.291277.1413120785276.JavaMail.yahoo@jws10751.mail.gq1.yahoo.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host c-50-133-228-126.hsd1.ma.comcast.net
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
In-Reply-To <1749456658.291277.1413120785276.JavaMail.yahoo@jws10751.mail.gq1.yahoo.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.14824.1413210698.18130.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1413210698 news.xs4all.nl 2974 [2001:888:2000:d::a6]:57305
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:79050

Show key headers only | View raw


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 comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: what is the easiest way to install multiple Python versions? Ned Batchelder <ned@nedbatchelder.com> - 2014-10-13 10:31 -0400

csiph-web