庆典:mkvirtualenv:命令未找到 [英] bash: mkvirtualenv: command not found
问题描述
下面就<一个指令后, href=\"http://www.doughellmann.com/articles/pythonmagazine/completely-different/2008-05-virtualenvwrapper/index.html\">Doug赫尔曼的 virtualenvwrapper
帖子,我还是没能火起来的测试环境。
[mpenning @海啸〜] $ mkvirtualenv测试
-bash:mkvirtualenv:命令未找到
[mpenning @海啸〜] $
应该 WORKON_HOME
,是不是在我的 $ HOME
指出,我使用。我试图寻找 /usr/local/bin/virtualenvwrapper.sh
如图所示的<一个href=\"http://virtualenvwrapper.readthedocs.org/en/latest/install.html\"><$c$c>virtualenvwrapper$c$c>安装文档,但它不存在
我运行CentOS 6的和Python 2.6.6,如果这个问题。
#文件:〜/ .bash_profile中
#...出口WORKON_HOME =/选择/ virtual_env /
源的/ opt / virtual_env /斌/ virtualenvwrapper_bashrc
由于某些原因, virtualenvwrapper.sh
安装在的/ usr / bin中/ virtualenvwrapper.sh
,而不是在的/ usr / local / bin目录
。
在下面我的.bash_profile
作品...
源/usr/bin/virtualenvwrapper.sh
出口WORKON_HOME =/选择/ virtual_env /
我的安装似乎不采购做工精细 virtualenvwrapper_bashrc
After following the instructions on Doug Hellman's virtualenvwrapper
post, I still could not fire up a test environment.
[mpenning@tsunami ~]$ mkvirtualenv test
-bash: mkvirtualenv: command not found
[mpenning@tsunami ~]$
It should be noted that I'm using WORKON_HOME
that is not in my $HOME
. I tried looking for /usr/local/bin/virtualenvwrapper.sh
as shown in the virtualenvwrapper
installation docs, but it does not exist.
I'm running CentOS 6 and python 2.6.6, if this matters.
# File: ~/.bash_profile
# ...
export WORKON_HOME="/opt/virtual_env/"
source "/opt/virtual_env/bin/virtualenvwrapper_bashrc"
For some reason, virtualenvwrapper.sh
installed in /usr/bin/virtualenvwrapper.sh
, instead of under /usr/local/bin
.
The following in my .bash_profile
works...
source "/usr/bin/virtualenvwrapper.sh"
export WORKON_HOME="/opt/virtual_env/"
My install seems to work fine without sourcing virtualenvwrapper_bashrc
这篇关于庆典:mkvirtualenv:命令未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!