virtualenv uses Python 2.6 instead of 2.7 -
i created virtualenv , installed packages pip. want use python 2.7, default version on system. env's lib folder contains folder python 2.6, not 2.7. why not using 2.7, , how can correct it?
$ python -v python 2.7.6 $ virtualenv flask flask/ bin/ app/ lib/ python2.6/
find python2.7 is, tell virtualenv use binary.
$ python2.7 /usr/bin/python2.7 $ virtualenv -p $(which python2.7) flask
for example, on ubuntu, install virtualenv sudo apt-get install virtualenv
. create env virtualenv vpy
. creates vpy
directory. next run . ./vpy/bin/activate
activate env. install packages pip pip install flask
.
every time start new shell, must activate env again . ./vpy/bin/activate
.
Comments
Post a Comment