By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,675 Members | 2,255 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,675 IT Pros & Developers. It's quick & easy.

Parallel Python environments..

P: n/a
Hi..

If I wanted to be able to build/test/use parallel python versions, what
would I need to do/set (paths/libs/etc...) and where would I need to place
the 2nd python version, so as not to screw up my initial python dev env.

I'd like to be able to switch back/forth between the different versions if
possible. I know it should be, but I haven't been able to find what I'm
looking for via the 'net...

Any sites/pointers describing the process would be helpuful. In particular,
any changfes to the bashrc/profile/etc... files to allow me to accomplish
this would be helpful.

thanks

Nov 6 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
* bruce (Tue, 6 Nov 2007 07:13:43 -0800)
If I wanted to be able to build/test/use parallel python versions, what
would I need to do/set (paths/libs/etc...)
nothing
and where would I need to place the 2nd python version, so as not to
screw up my initial python dev env.
Anywhere you like (probably ~/bin would be best)
Any sites/pointers describing the process would be helpuful. In particular,
any changfes to the bashrc/profile/etc... files to allow me to accomplish
this would be helpful.
Nothing like that. Just change the shebang.

Thorsten
Nov 6 '07 #2

P: n/a
In Gentoo Linux you can select between installed python version using
python-config script.

Nov 6 '07 #3

P: n/a
bruce wrote:
Hi..

If I wanted to be able to build/test/use parallel python versions, what
would I need to do/set (paths/libs/etc...) and where would I need to place
the 2nd python version, so as not to screw up my initial python dev env.

I'd like to be able to switch back/forth between the different versions if
possible. I know it should be, but I haven't been able to find what I'm
looking for via the 'net...

Any sites/pointers describing the process would be helpuful. In
particular, any changfes to the bashrc/profile/etc... files to allow me to
accomplish this would be helpful.
Installation of several python versions is easy on at least Windows &
unixish platforms. For the latter, ususally your package-management offers
several versions. If your's doesn't or you use windows, just install as
required by python itself.

Only what gets chosen as default python version in case of e.g. *.py-files
clicking in windows explorer depends on the python version installed as
last and must be changed by the OS's means for it if other behavior is
desired.

Diez
Nov 6 '07 #4

P: n/a
En Tue, 06 Nov 2007 18:43:10 -0300, bruce <be*******@earthlink.net>
escribió:
if i have python 2.4.3 installed, it gets placed in the python2.4 dir..
if i
don't do anything different, and install python 2.4.2, it too will get
placed in the python2.4 tree... which is not what i want.
Any reason you want to keep 2.4.2 *and* 2.4.3 separate? The latter is only
a bugfix over the 2.4 version - anything working on 2.4.2 should work on
2.4.3. And 2.4.4, the latest bugfix on that series. Binaries, shared
libraries, extensions, etc. targetted to 2.4x should work with 2.4.4
You may want to have separate directories for 2.4 and 2.5, yes; binaries,
shared libraries and extensions do NOT work across versions changing the
SECOND digit. But changes on the THIRD digit should not have compatibility
problems.

--
Gabriel Genellina

Nov 6 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.