开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜