开发者

Virtualenvwrapper .hook: Permission Denied

开发者 https://www.devze.com 2022-12-25 20:07 出处:网络
I\'ve used virtualenvwrapper previously, but I\'m having problems running it on a new computer. My .bashrc file is updated per the instructions:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消