0

我正在使用 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 有什么区别?

先感谢您。

4

0 回答 0