Pip SSL Error on Windows

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

    The following solution worked for me :

    1. Go to run. Type %appdata%
    2. Go to the folder pip and edit the pip.ini file.
    3. If the folder doesn't exist create one and also create a pip.ini file and edit in a text editor.
    4. Add the following :
    [global]
    trusted-host = pypi.python.org
                   pypi.org
                   files.pythonhosted.org
                   raw.githubusercontent.com
                   github.com
    

提交回复
热议问题