003-Ubuntu18.0:/usr/bin/python3: Error while finding module specification for ‘virtualenvwrapper

After installing python3 on ubuntu18 or upgrading to version 18.0, opening the terminal will always prompt:

/usr/bin/python3: 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 forVIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 and that PATH is
/usr/bin/python3: find 'There was an error in the module specification of virtualenvwrapper. hook_loader' (ModuleNotFoundError: No module named'virtualenvwrapper')
virtualenvwrapper. sh: There was a problem when running the initialization hook.
If Python cannot import the module virtualenvwrapper.hook_loader,
check if virtualenvwrapper has been installed
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3, the path is

Solution

$:sudo pip3 install virtualenv virtualenvwrapper
Insert picture description here

$:source .bashrc
Insert picture description here

If the above does not work, try the following command:
Insert picture description here

Guess you like

Origin blog.csdn.net/mmmmmCJP/article/details/109315329