如何成功启动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
在研究相关帖子后,我尝试了:
提前感谢您的帮助!
答案 0 :(得分:1)
我认为:
[:]
应该是这样的(对我来说是python3,但我看到您正在使用python2):
export VIRTUALENVWRAPPER_PYTHON=/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh