Is it possible to run two versions of Python side by side?

I studied Python for several weeks, and although I have successfully developed applications for the Google App Engine with Python 2.6.5, this requires Python 2.5.

Keeping in mind compatibility issues when loading applications (this is a situation that I would prefer to avoid when learning Python), I wonder if it is possible to have 2.5 and 2.6.5 installed on the same computer. Ideally, I would like to use 2.6.5 by default and configure GAE to use 2.5.

+3
source share
3 answers

That's right.

* nix, make altinstall make install, "python" /, , , python2.5 python2.6. , --prefix script .

Linux , . python2.5 .. ( blessed/native version, python .)

Windows .

+4

, Python " ". Ubuntu

sudo apt-get install python2.5

( Ubuntu, 10.04, python2.6 .) python 2.6, python /usr/bin/python. python 2.5, /usr/bin/python2.5.

, .

virtualenv.

0

, , , , Python Python. , Google App Engine Python 2.5 ( ) Python 2.6. :

1) Python 2.5. 2) Python 2.6 ( ). . 3) SDK Google App Engine. 4) " Google App Engine" "" 5) "" > "" pythonw.exe. c:\Python25\pythonw.exe

0
source

Source: https://habr.com/ru/post/1751986/


All Articles