zoukankan      html  css  js  c++  java
  • pip使用报错【cannot import name HTTPSHandler】

    python2.7,报错如下:

    Traceback (most recent call last):

     File "/usr/local/bin/pip", line 9, in <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 10, 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 17, 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 13, 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 31, in <module>

       from urllib2 import (Request, urlopen, URLError, HTTPError,

    ImportError: cannot import name HTTPSHandle

    处理:yum安装openssl和openssl-devel。然后重新编译python。

    参考:

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

  • 相关阅读:
    jQuery自定义选项卡插件
    jQuery委托事件delegate()方法
    发布/订阅模式
    Node.js + Nginx WNMP 多域名 多端口 反向代理
    让Nginx支持apk、ipa文件下载
    jQuery中bind方法传参
    Http协议详解
    vuecli2.X环境搭建
    vue绑定属性、绑定class及绑定style
    vue数据渲染、条件判断及列表循环
  • 原文地址:https://www.cnblogs.com/ExMan/p/8575638.html
Copyright © 2011-2022 走看看