简体   繁体   中英

Virtualenvwrapper .hook: Permission Denied

I've used virtualenvwrapper previously, but I'm having problems running it on a new computer. My .bashrc file is updated per the instructions:

export WORKON_HOME=$DEV_HOME/projects
source /usr/local/bin/virtualenvwrapper.sh

But when source is run, I get the following:

bash: /25009.hook: Permission denied
bash: /25009.hook: No such file or directory

This previous post leads me to believe the filename is being recycled and locked because virtualenvwrapper.sh uses $$ . Is there any way to fix this?

Try storing your virtualenvs directory somewhere you are guaranteed not to have any permissions errors (and maybe even try using the absolute path). Also, are you sure you created the 'projects' directory manually?

For reference, my bashrc file looks something like this:

export WORKON_HOME=/srv/.virtualenvs/
export PIP_VIRTUALENV_BASE = WORKON_HOME
source /usr/local/bin/virtualenvwrapper.sh

And my .virtualenvs directory is chmodded to 755.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM