[英]mkvirtualenv: command not found after running source ~/.bash_profile
I'm doing a setup for the tutorials on newcoder.io . 我正在为newcoder.io上的教程进行设置 。 I'm setting up on xubuntu which is running in Oracle Vm on Windows 7. Everything goes off without a snag until I get to the part where I install virtualenv and virtualenvwrapper.
我正在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
After I run 我跑步后
source ~/.bash_profile
I get an error saying: 我收到一条错误消息:
mkvirtualenv: command not found
What can be done to remedy this? 如何解决这个问题?
Try running virtualenvwrapper.sh
in your .bash_profile
before the /etc/bash_completion.d/virtualenvwrapper
command. 尝试在
/etc/bash_completion.d/virtualenvwrapper
命令之前在.bash_profile
运行virtualenvwrapper.sh
。 For example: 例如:
.bash_profile .bash_profile
...
source "/usr/bin/virtualenvwrapper.sh"
source /etc/bash_completion.d/virtualenvwrapper
A few days ago I installed virtualenvwrapper and all I had to do is log on again to my account. 几天前,我安装了virtualenvwrapper,我要做的就是再次登录到我的帐户。 Any changes to .bashrc or .bash_profile were not required.
不需要对.bashrc或.bash_profile进行任何更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.