[venv] Re: Setting Non-default-python-version in virtualenv

2016-09-20 Thread Stuart Axon
You need to pass the full path to -p First check that python2.7 installed in the system is actually python 2.7: $ python2.7 --version Python 2.7.12 You can get the full path, by using 'which': $ which python2.7 /usr/bin/python2.7 Pass that to -p: virtualenv -p /usr/bin/python2.7 env_dir No

[venv] Re: Setting Non-default-python-version in virtualenv

2016-09-20 Thread Stuart Axon
On Sunday, September 18, 2016 at 1:03:07 PM UTC+1, Amir Teymuri wrote: > > My default python version on my Debian 8.5 machine is *3.4.2*. I want to > use python *2.7* for only one project. I have tried running all of the > following commands in the terminal one by one, : > > virtualenv -p pytho