I am trying to figure out how to switch between different Python versions on my Mac using virtualenvwrapper package.
My Mac came with Python2.7 and I've installed the latest version (Python3.7). I have figured out how to make an environment with Python3.7 using the following:
mkvirtualenv -p /usr/local/bin/python3 p3
But when I check PYTHONPATH, VIRTUALENVWRAPPER_PYTHON, and VIRTUALENV_PYTHON, they all point to the original Python 2.7.
How do I know that the environment I created is actually running Python3?
I am new to virtual environments and the Mac world, so this has all be a bit confusing to figure out. I appreciate any input.
python --versionwhat do you get?pythonshould do the trick as well as it prints the version. Don't forget todeactivateandworkonthe different environments i.e be sure to switch between the environments.