how to setup virtualenv to use a different python version in each virtual env
问题 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