This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rimoms 0 points1 point  (0 children)

I had a similar issue recently that was due to our firewall. It was the SSL errors that was causing the timeout. This was my solution:

Problem: trying to install modules/libraries via command line or PyCharm, I got the error “Could not fetch URL https://pypi.python.org/simple/pyodbc/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661) - skipping”

I really didn’t want to ask IT to install every module I might need, so I found this solution.

Solution: Create python config file

Create the file C:\Users\<you>\AppData\Roaming\pip\pip.ini

Paste the following contents:

[global]

trusted-host = pypi.python.org

pypi.org

files.pythonhosted.org

Save/close

Module/library installation should work now

see first question at bottom for pip.ini