Virtualenvwrapper .hook:权限被拒绝
我之前使用过 virtualenvwrapper
,但在新计算机上运行它时遇到问题。我的 .bashrc
文件按照说明进行更新:
export WORKON_HOME=$DEV_HOME/projects
source /usr/local/bin/virtualenvwrapper.sh
但是当 source
运行时,我得到以下信息:
bash: /25009.hook: Permission denied
bash: /25009.hook: No such file or directory
这篇文章让我相信文件名正在被回收并锁定,因为virtualenvwrapper.sh
使用$$
。有什么办法可以解决这个问题吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试将 virtualenvs 目录存储在保证不会出现任何权限错误的地方(甚至可以尝试使用绝对路径)。另外,您确定您手动创建了“projects”目录吗?
作为参考,我的 bashrc 文件看起来像这样:
我的 .virtualenvs 目录被 chmodded 为 755。
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:
And my .virtualenvs directory is chmodded to 755.