【问题解决】/usr/bin/python: Error while finding module specification for ‘virtualenvwrapper.hook_loader‘

问题:

打开命令行出现:

/usr/bin/python: Error while finding module specification for 'virtualenvwrapper.hook_loader' (ModuleNotFoundError: No module named 'virtualenvwrapper')
virtualenvwrapper.sh: There was a problem running the initialization hooks.

If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is
set properly.

解决:

sudo pip3 install virtualenv virtualenvwrapper
或者
sudo pip2 install virtualenv virtualenvwrapper

猜你喜欢

转载自blog.csdn.net/p1279030826/article/details/121734164