Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.06; '(python': 0.07; 'environments': 0.07; 'importerror:': 0.07; 'bits': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '(sorry': 0.16; '-make': 0.16; 'combinations': 0.16; 'dict': 0.16; 'did,': 0.16; 'etc...': 0.16; 'example)': 0.16; 'numpy': 0.16; 'simple.': 0.16; 'ssh': 0.16; 'subject:install': 0.16; 'subject:versions': 0.16; 'sudo': 0.16; 'url:ftp': 0.16; 'version?': 0.16; 'wrote:': 0.18; 'module': 0.19; 'cc:addr:python.org': 0.22; 'install': 0.23; 'installation': 0.23; 'lets': 0.24; 'cc:2**0': 0.24; '(see': 0.26; 'header:In-Reply- To:1': 0.27; 'tried': 0.27; 'message-id:@mail.gmail.com': 0.30; 'along': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'subject:what': 0.31; 'way?': 0.31; 'stuff': 0.32; 'run': 0.32; 'another': 0.32; 'linux': 0.33; 'url:python': 0.33; 'ago': 0.33; 'skip:_ 10': 0.34; 'subject:the': 0.34; "i'd": 0.34; 'could': 0.34; 'something': 0.35; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; '2.6': 0.36; 'ubuntu': 0.36; 'done': 0.36; 'url:listinfo': 0.36; 'possible': 0.36; 'subject:?': 0.36; 'hi,': 0.36; 'url:org': 0.36; 'list': 0.37; 'project': 0.37; 'system,': 0.38; 'thank': 0.38; 'easiest': 0.38; 'needed': 0.38; 'skip:- 10': 0.38; 'sure': 0.39; 'skip:p 20': 0.39; 'url:mail': 0.40; 'days': 0.60; 'eventually': 0.60; 'lower': 0.61; 'you.': 0.62; 'different': 0.65; 'side': 0.67; 'default': 0.69; 'apart': 0.72; 'to:addr:yahoo.com': 0.81; './configure': 0.84; 'apt-get': 0.84; 'us?': 0.84; 'medicine,': 0.91; 'education,': 0.96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kJp3etoCHL6qdb3JPzWaJb8UqnbIwe6UklU0cDZ80co=; b=nHH9BZnjai3oLzniYpjE6fSIIrqcwy6yxaHYdDVVZ4KpnHWL5sGT3DguxWtTO6rzYL L1XitxIabreqKQ1oINE9CRwaGWS3iA431en60+ppjh9nfy2EJfiLnRrM2PwPe3WaFffY 8Z5liVXTMV53o44rfYqMbr3CbP+m6Ofw84EB/B9HhHLv0Luk4B9QCRXR7/WPgWDYU/HE Km9YEvs1B0n1k7ubhZBindbDPcREw3rtxyWe0epu84fKdB+qpSdJI/XiUSgkGgZsZkmq Oxuxfl78uvhXs1QoM/D7Qth5mE3bw8kd80QB5uHXMdvSj0xDwjiO1gH1ivkvMIbqPYqg ELXA== MIME-Version: 1.0 X-Received: by 10.194.9.228 with SMTP id d4mr2220816wjb.99.1413130535274; Sun, 12 Oct 2014 09:15:35 -0700 (PDT) In-Reply-To: <1749456658.291277.1413120785276.JavaMail.yahoo@jws10751.mail.gq1.yahoo.com> References: <1749456658.291277.1413120785276.JavaMail.yahoo@jws10751.mail.gq1.yahoo.com> Date: Sun, 12 Oct 2014 21:45:35 +0530 Subject: Re: what is the easiest way to install multiple Python versions? From: Gayathri J To: Albert-Jan Roskam Content-Type: text/plain; charset=UTF-8 Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 79 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413130536 news.xs4all.nl 2958 [2001:888:2000:d::a6]:44101 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79002 I have been using Anaconda's (Continnum) conda installation for system installation (python 2.7) and for python 3 conda lets us maintain diferent environments with different python and different combinations of other packages like numpy etc... sure not to disappoint! On 10/12/14, 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 > > Thank you. > > Albert-Jan > > > *) Make altinstall > sudo apt-get install libsqlite3-dev libbz2-dev libgdbm-dev libncurses5-dev > tk-dev zlib1g-dev > wget https://www.python.org/ftp/python/2.6.8/Python-2.6.8.tgz > tar -zxvf Python-2.6.8.tgz > cd Python-2.6.8/ > ./configure --prefix=/usr/local > make # see 'failed stuff' below > sudo make altinstall > mkvirtualenv -p /usr/local/bin/python2.6 python26 # ImportError: No module > named zlib > > > # Failed stuff > Failed to find the necessary bits to build these modules: > _bsddb _curses _curses_panel > _hashlib _sqlite3 _ssl > bsddb185 bz2 dbm > dl gdbm imageop > linuxaudiodev ossaudiodev readline > sunaudiodev zlib > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > 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? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > -- > https://mail.python.org/mailman/listinfo/python-list >