How to change the version of Python obtained by Cygwin

I have two versions of python installed on Win7. (Python 2.5 and Python 2.7).

They are located in 'C: / Python25' and 'C: / Python27' respectively.

I am trying to run a file using Python 2.5, but by default Cygwin raises 2.7.

How to change which version of Cygwin is using?

+5
source share
2 answers

A quick way is to reorder $ PATH so that 2.5 is selected first. The correct way is to use virtualenv to create a jail environment specific to the python version.

+4
source

Bon post, , . Python ? Virtualenv , Python . Virtualenv Virtualenvwrapper ( ) - , Python. , , . pip. , , ? $pip freeze > requirements.txt .txt . , . 10 pip, , .

You may have good newbies looking at virtualenv and pip here

+1
source

All Articles