python version

How to use different Python version with virtual environments?

Use the flag -p with virtualenv command to specify the python version that you would want to use

$ virtualenv -p /usr/bin/python/2.7

For windows environment, use

c:\> virtualenv –python=c:\Python27\python.exe myenv

Share

How to check Python version number in Linux/Unix environment?

To check the Python version number in Linux, simply type


$ python -V

You will get an output

Python 2.4.3
Share
Kurinchi Calendar
August 2018
M T W T F S S
« Oct    
 12345
6789101112
13141516171819
20212223242526
2728293031