Pip SSL Error on Windows

前端 未结 6 883
萌比男神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:35

    I had the same proplem and I solved it during the installation of tensorflow. Here is the solution in steps:

    1. Access the file relevant to SSL. Find the folder in the install location, where sessions.py is located. (I guess it is in folder ~~~₩pip₩vender₩requests)

    2. Open sessions.py and modify self.verify = True to self.verify = False

    3. Install using trusted host code as below

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

提交回复
热议问题