Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78996 > unrolled thread
| Started by | Albert-Jan Roskam <fomcl@yahoo.com> |
|---|---|
| First post | 2014-10-12 13:33 +0000 |
| Last post | 2014-10-16 08:32 +0000 |
| Articles | 6 — 3 participants |
Back to article view | Back to comp.lang.python
what is the easiest way to install multiple Python versions? Albert-Jan Roskam <fomcl@yahoo.com> - 2014-10-12 13:33 +0000
Re: what is the easiest way to install multiple Python versions? Rustom Mody <rustompmody@gmail.com> - 2014-10-12 19:31 -0700
Re: what is the easiest way to install multiple Python versions? Chris Angelico <rosuav@gmail.com> - 2014-10-13 18:54 +1100
Re: what is the easiest way to install multiple Python versions? Rustom Mody <rustompmody@gmail.com> - 2014-10-13 01:00 -0700
Re: what is the easiest way to install multiple Python versions? Chris Angelico <rosuav@gmail.com> - 2014-10-14 00:50 +1100
Re: what is the easiest way to install multiple Python versions? Albert-Jan Roskam <fomcl@yahoo.com> - 2014-10-16 08:32 +0000
| From | Albert-Jan Roskam <fomcl@yahoo.com> |
|---|---|
| Date | 2014-10-12 13:33 +0000 |
| Subject | what is the easiest way to install multiple Python versions? |
| Message-ID | <mailman.14786.1413120959.18130.python-list@python.org> |
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? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[toc] | [next] | [standalone]
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2014-10-12 19:31 -0700 |
| Message-ID | <2aad8f7f-3dbe-4bf5-9f16-93801c6d5394@googlegroups.com> |
| In reply to | #78996 |
On Sunday, October 12, 2014 7:06:14 PM UTC+5:30, Albert-Jan Roskam wrote: > Hi, > > 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) Hearing a bit about docker nowadays. Here's why its supposedly better than a VM: https://www.docker.com/whatisdocker/ Downsides?? No idea!
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-10-13 18:54 +1100 |
| Message-ID | <mailman.14814.1413186854.18130.python-list@python.org> |
| In reply to | #79031 |
On Mon, Oct 13, 2014 at 1:31 PM, Rustom Mody <rustompmody@gmail.com> wrote: > Hearing a bit about docker nowadays. > > Here's why its supposedly better than a VM: > https://www.docker.com/whatisdocker/ > > Downsides?? No idea! One obvious downside is that it doesn't allow guests to modify the OS at all. A VM gives you an entire OS, so you can use and manipulate anything. If you don't *need* all that flexibility, then a VM is paying an unnecessary cost, ergo Docker will have no downside. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2014-10-13 01:00 -0700 |
| Message-ID | <75b69c05-a245-48c2-a910-a3e34ac5792b@googlegroups.com> |
| In reply to | #79036 |
On Monday, October 13, 2014 1:24:27 PM UTC+5:30, Chris Angelico wrote: > On Mon, Oct 13, 2014 at 1:31 PM, Rustom Mody wrote: > > Hearing a bit about docker nowadays. > > Here's why its supposedly better than a VM: > > https://www.docker.com/whatisdocker/ > > Downsides?? No idea! > One obvious downside is that it doesn't allow guests to modify the OS > at all. A VM gives you an entire OS, so you can use and manipulate > anything. If you don't *need* all that flexibility, then a VM is > paying an unnecessary cost, ergo Docker will have no downside. Was talking of more pragmatic downsides eg "Does it really work?" :-) [Docker is still quite new]
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-10-14 00:50 +1100 |
| Message-ID | <mailman.14823.1413208236.18130.python-list@python.org> |
| In reply to | #79037 |
On Mon, Oct 13, 2014 at 7:00 PM, Rustom Mody <rustompmody@gmail.com> wrote: > On Monday, October 13, 2014 1:24:27 PM UTC+5:30, Chris Angelico wrote: >> On Mon, Oct 13, 2014 at 1:31 PM, Rustom Mody wrote: >> > Hearing a bit about docker nowadays. >> > Here's why its supposedly better than a VM: >> > https://www.docker.com/whatisdocker/ >> > Downsides?? No idea! > >> One obvious downside is that it doesn't allow guests to modify the OS >> at all. A VM gives you an entire OS, so you can use and manipulate >> anything. If you don't *need* all that flexibility, then a VM is >> paying an unnecessary cost, ergo Docker will have no downside. > > Was talking of more pragmatic downsides eg "Does it really work?" :-) > [Docker is still quite new] Ah, I can't help you there. I've never used Docker. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Albert-Jan Roskam <fomcl@yahoo.com> |
|---|---|
| Date | 2014-10-16 08:32 +0000 |
| Message-ID | <mailman.14916.1413448378.18130.python-list@python.org> |
| In reply to | #79037 |
----- Original Message ----- > From: Rustom Mody <rustompmody@gmail.com> > To: python-list@python.org > Cc: > Sent: Monday, October 13, 2014 10:00 AM > Subject: Re: what is the easiest way to install multiple Python versions? > > On Monday, October 13, 2014 1:24:27 PM UTC+5:30, Chris Angelico wrote: >> On Mon, Oct 13, 2014 at 1:31 PM, Rustom Mody wrote: >> > Hearing a bit about docker nowadays. >> > Here's why its supposedly better than a VM: >> > https://www.docker.com/whatisdocker/ >> > Downsides?? No idea! > >> One obvious downside is that it doesn't allow guests to modify the OS >> at all. A VM gives you an entire OS, so you can use and manipulate >> anything. If you don't *need* all that flexibility, then a VM is >> paying an unnecessary cost, ergo Docker will have no downside. > > Was talking of more pragmatic downsides eg "Does it really work?" :-) > [Docker is still quite new] I have not used Docker before but I did look into it. Reason why I chose I full VM (Virtualbox in conjunction with Jenkins CI) is that I also needed to test Windows platforms. AFAIK, the Docker guest systems *must* be unix, possibly only Linux. A big plus of Docker is that the guest systems share resources, so it is a lot lighter to run multiple guest machines. I did hear that nowadays it is possible to use a Windows *host* system.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web