SSL Issue while installing any package using pip behind the proxy

后端 未结 2 727
無奈伤痛
無奈伤痛 2021-01-27 04:36

Facing issues while installing tensorflow or any other package behind the proxy :

First try :

Run the command :

pip install --upgrade tensorflow
         


        
相关标签:
2条回答
  • 2021-01-27 05:16

    I had a similar issue after some update mix-ups between pip and apt. Following the suggestions on some SO page that I don't recall I've launched

    sudo python -m easy_install --upgrade pyOpenSSL 
    

    and got the things running again.

    LE: might've misread the problem.

    0 讨论(0)
  • 2021-01-27 05:24

    I would suspect that you might need to set your proxy environment variables on your machine to use your proxy. Try setting the following (assumming your on a Linux or Mac OS):

    export HTTP_PROXY=http://user:passwd@xxx.xx.x.xx:80
    export HTTPS_PROXY=https://user:passwd@xxx.xx.x.xx:443
    

    You don't necessarily need to set the HTTPS_PROXY variable but it can't hurt to do so

    Then try running without the flags

    pip install tensorflow
    
    0 讨论(0)
提交回复
热议问题