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

烂漫一生 提交于 2019-12-11 14:15:41

问题


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:


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.



来源:https://stackoverflow.com/questions/46660363/bash-usr-local-bin-virtualenvwrapper-sh-no-such-file-or-directory-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!