我升级了brew,现在每次打开终端时都会收到此消息:
/usr/bin/python: 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.
我尝试了以下文章中Railslide和Sudipta Basak发布的建议解决方案,但都没有为我解决此问题:problems with python and virtualenvwrapper after updating: No module named virtualenvwrapper
执行“ / usr / local / bin / pip3 install virtualenv virtualenvwrapper”会显示“要求已满足”消息。
我在Mac上,这对我来说是一件破事,例如我与Anaconda一起安装的Juypter Notebook,因此将不胜感激!