Trying to switch the version of the virtual environment of python from 2 series to 3 series It took a while, so I wrote a memo.
In conclusion, it was because the command when creating the virtual environment did not have an option.
Command without options
$ virtualenv env
Commands with options
$ virtualenv env --python=/usr/bin/python3
If you create a virtual environment with a command without options, It was made with the python version (2 series) included in mac by default, Even if I executed the command to switch to 3 series, I could not switch. (There may be a way to change it, but I didn't know.)
Recommended Posts