Pip SSL Error on Windows

前端 未结 6 880
萌比男神i
萌比男神i 2020-12-15 14:02

I use Python 3.x on Windows 7 64 bit in an environment without full control of inbound/outbound traffic processing. Up till this week I\'ve been able to use the --trus

6条回答
  •  [愿得一人]
    2020-12-15 14:53

    pip install cryptography was throwing error:

    Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org'

    Could not fetch URL https://pypi.org/simple/cryptography/: There was a problem confirming the ssl certificate:

    Tried adding these URLs as trusted host and it worked:

    pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org cryptography
    

提交回复
热议问题