virtualenvwrapper.sh:fork:资源暂时不可用 - Python / Django

时间:2014-12-22 19:25:04

标签: python django virtualenv virtualenvwrapper

如何成功启动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

  • 下载并安装python,
  • 安装setuptools-8.2.1,
  • 安装pip,
  • pip django,pip pillow,
  • sudo install virtualenv,sudo install virtualenvwrapper

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

在研究相关帖子后,我尝试了:

  • 通过pip
  • 重新安装所有软件包
  • 重新安装pip
  • kill -9以确保所有开放进程都没有太多

提前感谢您的帮助!

1 个答案:

答案 0 :(得分:1)

我认为:

[:]

应该是这样的(对我来说是python3,但我看到您正在使用python2):

export VIRTUALENVWRAPPER_PYTHON=/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh