pip install is not working

匿名 (未验证) 提交于 2019-12-03 02:34:02

问题:

I am trying to install pygame with pip install . but every time i tried i faced to this error.

Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/pygame-1-9-3-cp36-cp36m-win-amd64/ Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/pygame-1-9-3-cp36-cp36m-win-amd64/ Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/pygame-1-9-3-cp36-cp36m-win-amd64/ Operation cancelled by user*

I have done it with other libraries but I faced the same problem

回答1:

Go to this Website

.

This works when you are trying to install packages and firewalls are blocking the connection.



回答2:

It looks like pip is not connecting to the internet. I have a few options -- I don't know if they will work, but you can try them.

  1. Try to reinstall pip (pip3 if using python3) I had to do this on my systeme, as pip3 didn't work initally either.
  2. Check and see if you can ping a website from your terminal to check connectivity. You could have an error with your terminal (if using linux) and not with python itself.

Good luck, and hope this helps!



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!