Skip to content Skip to sidebar Skip to footer

Set Python Version For Each Virtualenv Using Virtualenvwrapper

Using virtualenv I can set the python version to a specific virtual environment via th -p option. This means for different environments I can set different python versions. Is ther

Solution 1:

You should be able to use the -p option when creating a virtualenv using virtualenvwrapper to specify the version: mkvirtualenv -p /usr/bin/python2.7 my_env.

Solution 2:

I've found you can also do the same for virtualenvwrapper projects like so: mkproject -p python2 my_venv_project. Also, Make sure the project name comes last

Post a Comment for "Set Python Version For Each Virtualenv Using Virtualenvwrapper"