当前位置: 代码迷 >> 综合 >> python 安装虚拟环境出现错误 Error while finding module specification for ‘virtualenvwrapper.hook_loader‘
  详细解决方案

python 安装虚拟环境出现错误 Error while finding module specification for ‘virtualenvwrapper.hook_loader‘

热度:45   发布时间:2023-12-18 02:42:04.0

错误如下:

/usr/local/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 for
VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3 and that PATH is
set properly.

解决办法如下:

python -m pip install --user virtualenvwrapper --upgrade
  相关解决方案