[Python Pitfall Notes] Install virtual environment: /usr/bin/python: No module named virtualenvwrapper

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!

Guess you like

Origin blog.csdn.net/qq_35097289/article/details/131058395