I've installed Virtualenvwrapper, and it seems to be running fine, but anytime I activate an env or run workon venv I get the following:
virtualenvwrapper_run_hook:12: permission denied:
virtualenvwrapper_run_hook:12: permission denied:
This is what my .bash_profile looks like
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
source ~/.local/bin/virtualenvwrapper.sh
Here are my packages
Package Version
----------------- -------
distlib 0.3.4
filelock 3.7.0
pbr 5.9.0
pip 22.1.1
platformdirs 2.5.2
setuptools 49.2.1
six 1.15.0
stevedore 3.5.0
virtualenv 20.14.1
virtualenv-clone 0.5.7
virtualenvwrapper 4.8.4
wheel 0.36.2
I am using Python3.8.9
It looks like my environment activated, but I'm not a fan of seeing an error message I don't understand.
I used vi ~/.zshrc
to open my .zshrc
file. Then I changed it to the following:
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/Devel
source /Users/username/.local/bin/virtualenvwrapper.sh
Replacing username with my actual user name.
I ran:
source ~/.zshrc
and it now all works. I think this is because for mac terminal I needed to edit my .zshrc
file. I also downloaded the virtualenvwrapper
package with pipx
initially.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.