Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79002
| References | <1749456658.291277.1413120785276.JavaMail.yahoo@jws10751.mail.gq1.yahoo.com> |
|---|---|
| Date | 2014-10-12 21:45 +0530 |
| Subject | Re: what is the easiest way to install multiple Python versions? |
| From | Gayathri J <usethisid2014@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.14790.1413130536.18130.python-list@python.org> (permalink) |
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 <fomcl@yahoo.com.dmarc.invalid> 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 >
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: what is the easiest way to install multiple Python versions? Gayathri J <usethisid2014@gmail.com> - 2014-10-12 21:45 +0530
csiph-web