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

问题描述 投票:4回答:1

要成功启动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 django,pip枕头,
  • sudo install virtualenv,sudo安装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重新安装所有软件包
  • 重新安装点子
  • 杀死-9以确保没有太多打开的进程
  • 谢谢您的帮助!
  • python django virtualenv virtualenvwrapper
    1个回答
    0
    投票
    我认为:

    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

    © www.soinside.com 2019 - 2024. All rights reserved.