1

I installed Python 3.6.2 and PyCharm on my win7. I tried to install packages, but PyCharm showed this error:

Error from Pycharm

Then I tried pip, but it failed again because of a connection failure:

Error of pip

It's a company laptop and it shouldn't be a security problem, but I'm not sure.

skrx
  • 19,308
  • 5
  • 30
  • 46
Steve.Gao
  • 167
  • 1
  • 9

2 Answers2

1

this happens typically when you are behind a proxy. You should try to configure pip to go through the proxy, as described here:

Using pip behind a proxy

This helped me when I had a similar issue.

Gabor
  • 635
  • 2
  • 12
  • 24
  • Thanks Gabor. I tried some methods but they didn't work. It's probably because of our IT policy. But I changed the settings in PyCharm and I'm able to see the list of packages, but still can't install any of them. – Steve.Gao Aug 11 '17 at 12:35
-1

try this pip install --upgrade --force-reinstall numpy

5uk1
  • 1
  • 2