问题描述:
![](https://i-blog.csdnimg.cn/blog_migrate/14495b8ec1a5c58d139521fb8fbfe4e4.png)
/home/mxls/anaconda3/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=/home/mxls/anaconda3/bin/python and that PATH is
set properly.
问题解释
环境配置文件.bashrc中的环境设置出现问题
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
![](https://i-blog.csdnimg.cn/blog_migrate/15bedecc22bd8460cc7d7d03d351626a.png)
将其进行删除
替换为错误提示的信息
VIRTUALENVWRAPPER_PYTHON=/home/mxls/anaconda3/bin/python
保存后:
![](https://i-blog.csdnimg.cn/blog_migrate/8203fb159d79bc72bd014db0f3cda5a2.png)
成功解决,优雅且美丽🏃🏃