[英]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.