在打开我的终端时,我找不到Virtualenvwrapper.sh文件

时间:2013-06-07 15:40:20

标签: virtualenv .bash-profile

我正在使用Mac,很久以前我使用pip安装了virtualenv和virtualenvwrapper。我大部分时间都独自使用vitualenv。最近我试图编辑我的.bash_profile,之后每当我打开终端时,我都会收到以下错误

“ - bash:/usr/local/bin/virtualenvwrapper.sh:没有这样的文件或目录”

我的.bash_profile

 1 #export PS1="\u@\h\w: "
  2 # Setting PATH for Python 2.7
  3 # The orginal version is saved in .bash_profile.pysave
  4 PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
  5 export PATH
  6 
  7 [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
  8 
  9 # Setting PATH for Python 2.7
 10 # The orginal version is saved in .bash_profile.pysave
 11 PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
 12 PATH="/usr/local/bin":$PATH
 13 export PATH
 14 
 15 export CLICOLOR=1
 16 export LSCOLORS=ExFxCxDxBxegedabagacad
 17 
 18 #source "/usr/bin/virtualenvwrapper.sh"
 19 #export WORKON_HOME="/opt/virtual_env/"
 20 
 21 #Randomly taken from stackoverflow post
 22 export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python
 23 export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
 24 source /usr/local/bin/virtualenvwrapper.sh
 25 
 26 # h is the host name, w the complete path
 27 export PS1="\w$ "

我的.bashrc看起来像这样

  1 #export PS1="\u@\h\w: "
  2 PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
  3 
  4 ### Added by the Heroku Toolbelt
  5 export PATH="/usr/local/heroku/bin:$PATH"
  6 
  7 export WORKON_HOME=$HOME/.virtualenvs
  8 export PROJECT_HOME=$HOME/Devel
  9 ##source /usr/local/bin/virtualenvwrapper.sh
 10 source /Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh
 11 
 12 # h is the host name, w the complete path
 13 #export PS1="\w$ "

任何人都可以告诉我哪里出错了吗? .bashrc和.bash_profile有什么区别?

提前谢谢。

0 个答案:

没有答案