本文介绍了-bash:/usr/local/bin/virtualenvwrapper.sh: 没有那个文件或目录 #10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我没有sudo"权限.当我跑
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
显示错误:
-bash: /usr/local/bin/virtualenvwrapper.sh: No such file or directory
如何解决这个问题?谁能给点建议?
how to solve this problem? Can anyone give some advises?
推荐答案
如果没有 sudo
或任何其他提升权限的方式,您将没有对 /usr/local/bin 的写权限/
所以你不能在那里安装 virtualenvwrapper.sh
.下载一个发行版,解压并将virtualenvwrapper.sh
复制到您具有写访问权限的目录.编辑您的 .bashrc
以从该目录中获取 virtualenvwrapper.sh
.
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.
这篇关于-bash:/usr/local/bin/virtualenvwrapper.sh: 没有那个文件或目录 #10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!