5

How does one install virtualenvwrapper for both Python 2.7 and 3.6 versions? My default Python environment is Python 3.6 and as such virtualenvwrapper is installed for Python 3.6 and not 2.7. I'm using macOS Sierra 10.12.6.

1
  • Use pip3 for the python version, I am not familiar with Mac OS but I believe this should work. Commented Aug 28, 2017 at 11:28

1 Answer 1

12

You need only install virtualenvwrapper once. See the warning about installing on your base Python installation.

Using Homebrew package manager install python2 and python3.

Making a virtual environment is a matter of passing a flag.

# make py3
mkvirtualenv py3 --python=python3

# make py2
mkvirtualenv py2 --python=python2
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.