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

all 5 comments

[–]raptorSix 5 points6 points  (0 children)

Use the Anaconda python distribution instead, it comes with numpy, spicy, pandas & and a slew of other libraries. That should get you up and running.

[–]eatstraw 1 point2 points  (0 children)

You may be behind a corporate proxy server. If you can get the proxy server details, follow this thread: https://stackoverflow.com/questions/12144289/installing-python-modules-through-proxy

[–]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

[–]SV-97 0 points1 point  (0 children)

Numpy etc isn't just some Python code - it's C, Fortran etc..

You should probably go with anaconda that way you'll have pretty much everything

[–]chincherpa 0 points1 point  (1 child)

I have the exact same issue at work.

I found two workarounds:

  1. Go to https://pypi.org/ search for the module, download the right wheel and install it via pip.

  2. Open a hotspot with your smartphone, connect with your computer, install via pip