出現エラー
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=/Users/username/opt/anaconda3/bin/python and that PATH is set properly.
一番最初のパス
.bashrc
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
.bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
変更後
.bashrc
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python
export WORKON_HOME=~/Env
source /usr/local/bin/virtualenvwrapper.sh
からの、ファイル再読み込み
source ~/.bashrc
これで先ほどのエラーは解消されました
参照: