繁体   English   中英

mkvirtualenv:运行源〜/ .bash_profile后找不到命令

[英]mkvirtualenv: command not found after running source ~/.bash_profile

我正在为newcoder.io上的教程进行设置 我正在Windows 7上的Oracle Vm中运行的xubuntu上进行设置,直到进入安装virtualenv和virtualenvwrapper的部分,一切都会顺利进行。

 sudo pip install virtualenv
 sudo pip install virtualenvwrapper
 export WORKON_HOME=~/Envs
 echo 'export WORKON_HOME=~/Envs' >> ~/.bash_profile
 echo 'source /etc/bash_completion.d/virtualenvwrapper' >> ~/.bash_profile
 mkdir -p $WORKON_HOME
 source ~/.bash_profile

我跑步后

 source ~/.bash_profile

我收到一条错误消息:

 mkvirtualenv: command not found

如何解决这个问题?

尝试在/etc/bash_completion.d/virtualenvwrapper命令之前在.bash_profile运行virtualenvwrapper.sh 例如:

.bash_profile

...
source "/usr/bin/virtualenvwrapper.sh"
source /etc/bash_completion.d/virtualenvwrapper

几天前,我安装了virtualenvwrapper,我要做的就是再次登录到我的帐户。 不需要对.bashrc或.bash_profile进行任何更改。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM