简体   繁体   中英

virtualenvwrapper.sh: fork: Resource temporarily unavailable - Python/Django

What do I have to do to successfully launch virtualenvwrapper.sh? What do I need to put into my .bashrc?

The error message :

/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.

I want to install Python/Django and followed this manual :

  • download and install python,
  • install setuptools-8.2.1,
  • install pip,
  • pip django, pip pillow,
  • sudo install virtualenv, sudo install virtualenvwrapper

virtualenvwrapper.sh can be found in (not in /usr/local/bin):

/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenvwrapper.sh

The virtualenvwrapper folder can be found in:

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenvwrapper

My .bashrc I edited as followed:

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

After studying related posts I tried:

  • reinstall all packages via pip
  • reinstall pip
  • kill -9 to make sure all there are not too many open processes

Thank you for your help in advance!

I think this:

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

Should be something like (for me it is python3, but I see you are using python2):

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM