要成功启动virtualenvwrapper.sh,我该怎么办?我需要在.bashrc中放入什么?
错误消息:
/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh: fork: Resource temporarily unavailable
#When I launch the terminal I see it twice, when I launch it manually I see the error message only once.
我想安装Python / Django,然后按照this manual:
virtualenvwrapper.sh可以在(不在/ usr / local / bin中)找到:
/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh
virtualenvwrapper文件夹可在以下位置找到:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenvwrapper
我的[[.bashrc我按如下方式编辑:
export PYTHONPATH=$PYTHONPATH/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
export VIRTUALENVWRAPPER_PYTHON=/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh
export WORKON_HOME=$HOME/.virtualenvs
source /Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh
研究了相关文章后,我尝试了:
export VIRTUALENVWRAPPER_PYTHON=/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh
应该是这样的(对我来说是python3,但我看到你正在使用python2):
export VIRTUALENVWRAPPER_PYTHON=/Library/Frameworks/Python.framework/Versions/2.7/bin/python