make virtualenvwrapper to work with different python versions -


fix: sorry, fine, error because of no module installed in new environment, jinja2.

first time using virtualenvwrapper little confused.

setup went fine, read docs, still don't understand few things.

in .bashrc file i've set:

# virtualenvwrapper export workon_home=$home/.virtualenvs export project_home=$home/snakepit source /usr/bin/virtualenvwrapper.sh 

i have project files, thougt should following:

go ~/snakepit/ directory, run mkvirtualenv -p /usr/bin/python2 [ envname ]

(i need specific version project), , saw created in ~/.virtualenvs/ dir.

my command promt changes showing me new environment [ envname ].

when now: python -v, shows using version 2.7 of python, well!

but when move now, project files snakepit directory, , try running program python myprogram.py shows me errors because still tries run program python 3.

how possible when python -v shows version 2.7?

error not python version being run, instead module missing in newly created environment. leave it, feature reference.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -