django - how to get venv to point to older python version -


i trying clone , run project on mac.

but on installation options have run:

pip install -r requirements.txt 

i error , pretty sure because project runs on python 2.7 while venv runs on 3.4

(venv)/* $ python --version python 3.4.3 

however when outside of venv run onto correct python version:

$ python --version python 2.7.6 

why venv running 3.4? how can change venv not run 3.4 , run 2.7

do have update environment or venv variable on system? can't find python in system. advice on commands run appreciated bit new python/django.

perhaps pip have in venv wrong, idk. appreciated.

you can use option -p specify, version should used, when create virtual environment.

for example:

virtualenv -p python2.7 venv 

Comments