-bash: /usr/local/bin/virtualenvwrapper.sh: No suc

2019-08-26 02:20发布

I have no 'sudo' privilege. When I run

printf '\n%s\n%s\n%s' '# virtualenv' 'export WORKON_HOME=~/virtualenvs' 
'source /usr/local/bin/virtualenvwrapper.sh' >> ~/.bashrc

it shows error:

-bash: /usr/local/bin/virtualenvwrapper.sh: No such file or directory

how to solve this problem? Can anyone give some advises?

1条回答
仙女界的扛把子
2楼-- · 2019-08-26 02:52

Without sudo or any other way to raise privileges you don't have write access to /usr/local/bin/ so you cannot install virtualenvwrapper.sh there. Download a distribution, extract it and copy virtualenvwrapper.sh to a directory where you have write access. Edit your .bashrc to source virtualenvwrapper.sh from that directory.

查看更多
登录 后发表回答