Код: Выделить всё
/Applications/Xcode.app/Contents/Developer/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 for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 and that PATH is
set properly.
Мой файл .zshrc выглядит так:
Код: Выделить всё
export PATH="/opt/homebrew/bin/python3:$PATH"
export PATH=$PATH:/opt/homebrew/Cellar/[email protected]/
export PATH=$PATH:/opt/homebrew/lib/python3.12/
export WORKON_HOME=~/.virtualenvs
export WORKON_HOME=$HOME/.virtualenvs
VIRTUALENVWRAPPER_PYTHON='/opt/homebrew/bin/python3' # (tested against the line below)
VIRTUALENVWRAPPER_PYTHON='/usr/bin/python3' # (tested against the line above)
source /opt/homebrew/bin/virtualenvwrapper.sh # (this seems to be causing the error on terminal launch)
Код: Выделить всё
~$ python --version
Python 3.12.6
~$ which -a python3
/opt/homebrew/bin/python3
/usr/bin/python3
Я проверил другие подобные вопросы и попытался ответить на них, но у меня все еще не получается. Я студент, поэтому это мешает мне выполнять больше работы. Клянусь, вчера все работало, пока XCode не решил обновиться!
Подробнее здесь: https://stackoverflow.com/questions/790 ... -loader-mo