Pip use error "Cannot import name Httpshandler"

Source: Internet
Author: User

python2.7, the error is as follows:

Traceback (most recent):

File "/usr/local/bin/pip", line 9, <module>

Load_entry_point (' pip==1.4.1 ', ' console_scripts ', ' Pip ') ()

File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 378, in Load_entry_point

File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2566, in Load_entry_point

File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2260, in load

File "/usr/local/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/__init__.py", line ten, in <module>

From Pip.util import get_installed_distributions, Get_prog

File "/usr/local/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/util.py", line +, in <module>

From Pip.vendor.distlib import version

File "/usr/local/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/vendor/distlib/version.py", line A, in < Module>

From. Compat Import String_types

File "/usr/local/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/vendor/distlib/compat.py", line up, in < Module>

From URLLIB2 import (Request, Urlopen, Urlerror, Httperror,

Importerror:cannot Import Name Httpshandle

Processing: Yum installs OpenSSL and Openssl-devel. Then recompile python.

Reference:

http://daiqingyang.blog.51cto.com/1070509/1275432

Pip use error "Cannot import name Httpshandler"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.