Easy_install pip == [Errno 8] nodename or servname provided or unknown

I have problems installing pip for python 2.7.3 installed via pythonbrew:

pythonbrew update --master pythonbrew install 2.7.3 --force 

This will fail at the last stage hangs when you try to extract pip from pip.openplans.org:

 Installed /Users/andrei/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/distribute-0.6.28-py2.7.egg Processing dependencies for distribute==0.6.28 Finished processing dependencies for distribute==0.6.28 After install bootstrap. Don't have permissions to write /Users/andrei/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info, skipping Creating /Users/andrei/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info Creating /Users/andrei/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/setuptools.pth Searching for pip Reading http://pypi.python.org/simple/pip/ Reading http://pip.openplans.org Download error on http://pip.openplans.org: [Errno 8] nodename nor servname provided, or not known -- Some packages may not be found! Reading http://pip.openplans.org Download error on http://pip.openplans.org: [Errno 8] nodename nor servname provided, or not known -- Some packages may not be found! Reading http://pip.openplans.org ... 

Running easy_install pip also leads to the same error. Of course, I can still clone the pip repository and install it manually, but it would be nice to know why it fails with easy_install . Any idea?


Update:

 $ host pip.openplans.org pip.openplans.org is an alias for puffin.oddbird.net. puffin.oddbird.net has address 173.203.85.138 
+6
source share
3 answers

Two things may be wrong:

  • DNS lookup error for pip.openplans.org ; check with host pip.openplans.org . This may be a local issue; test with Google DNS servers also with host pip.openplans.org 8.8.8.8 and host pip.openplans.org 8.8.4.4 . If all these searches fail, sacrifice the chickens on the Internet gods and expect improvement.

  • If the DNS lookup fails, but installation is what your local DNS cache can hold a negative lookup for. dscacheutil -flushcache it with the dscacheutil -flushcache .

+4
source

I had a similar problem; the team failed in iTerm2, but not in the OS X terminal by default. Rebooting iTerm2 fixed the problem.

+7
source

For me, turning on and off WiFi again helped Max OS X Yosemite.

+1
source

Source: https://habr.com/ru/post/922704/


All Articles