Reason for the error: Multiple versions of python are installed under Ubuntu (python2.7 and 3.x exist at the same time). When installing, sudo pip install virtualenvwrapper is used. When running, the python2.7 interpreter is used by default
, but in python2 There is no corresponding module in .7
Therefore, just add the following command to the bashrc file:
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
By default, the Python3 interpreter is selected, and no errors will be reported!