SSL Issue while installing any package using pip behind the proxy

后端 未结 2 726
無奈伤痛
無奈伤痛 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: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
    

提交回复
热议问题