ImportError: cannot import name HTTPSHandler using PIP

后端 未结 12 1860
刺人心
刺人心 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:47

    For Ubuntu

    First check wheather install openssl-develop

    sudo apt-get install libssl-dev
    

    Try another way to reinstall pip

    sudo apt-get install python-setuptools
    sudo easy_install pip
    

    use setuptools to install pip rather than install with source code may can solve the problem of dependency.

提交回复
热议问题