Virtualenvwrapper.hook: Permission Denied

I used virtualenvwrapper before, but I have problems running on a new computer. My .bashrc updated according to the instructions:

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

But when source is executed, I get the following:

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

This previous post makes me think that the file name is being processed and blocked because virtualenvwrapper.sh uses $$ . Is there any way to fix this?

+4
source share
1 answer

Try saving the virtualenvs directory somewhere, you will not have any permission 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.

+1
source

Source: https://habr.com/ru/post/1306322/


All Articles