ImportError: cannot import name HTTPSHandler using PIP

后端 未结 12 1877
刺人心
刺人心 2020-11-28 07:35

Facing an HTTPSHandler error while installing python packages using pip, following is the stack trace,

--------desktop:~$ pip install Django==1.3
Traceback (         


        
12条回答
  •  无人及你
    2020-11-28 07:57

    I'm using Redhat and have met the same problem.

    My solution is :

    1. install openssl and openssl-devel ---- yum install openssl openssl-devel -y
    2. install krb5-devel ---- yum install krb5-devel
    3. change to your python's directory and recompile it ---- make

    If I didn't do the 2nd step, when I recompiled my python2.7 , the log would say " fail to build module _ssl".

提交回复
热议问题