how to setup virtualenv to use a different python version in each virtual env

怎甘沉沦 提交于 2021-02-16 09:33:11

问题


using autoenv and virtualenvwrapper in python and trying to configure in it the specific python version.

the autoenv file (called .env) contains (simply)

echo 'my_env'

is there a way to configure it's python version?


回答1:


When creating virtual environment, you can specify which python to use. For example,

virtualenv -p/usr/bin/python2.7 env

Same for mkvirtualenv



来源:https://stackoverflow.com/questions/27885666/how-to-setup-virtualenv-to-use-a-different-python-version-in-each-virtual-env

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!