解决python - /usr/bin/python3: Error while finding spec for 'virtualenvwrapper.hook_loader'

After installation ECS server Ubuntu18 python3, always open command line interface prompt:
/ usr / bin / Python: Finding the while Module1 Specification for Error 'virtualenvwrapper.hook_loader' (ModuleNotFoundError: No Module1 the 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.

Some article said modified .bashrc in VIRTUALENVWRAPPER_PYTHON, after performing source ~ / .bashrc. This method does not work for me this machine
after inquiry:

http://www.itkeyword.com/doc/1445534594720488x414/usr-bin-python3-error-while-finding-spec-for-virtualenvwrapper-hook-loader

sudo pip3 install virtualenv virtualenvwrapper
source ~/.bashrc

Then there will be no prompt the
 

Published 131 original articles · won praise 22 · views 120 000 +

Guess you like

Origin blog.csdn.net/qq_38890412/article/details/104536357