0

I am using Python version 3.7.2. I tried to install pygame using the cmd command: pip install pygame

However I got an error saying:

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000000012917CD60>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions')': /simple/pygame/ ERROR: Could not find a version that satisfies the requirement pygame (from versions: none) ERROR: No matching distribution found for pygame

I tried to shut down my firewall but this did not resolve the issue. I was also able to access pypi.org otherwise in Chrome but pygame was unable to install through the cmd.

Please help Thanks in advance!

  • 1
    the answer might be here, did you check similar questions?: https://stackoverflow.com/questions/56720753/how-to-solve-the-pip-install-pygame-issue – D.L Mar 13 '22 at 16:50
  • Tried running cmd as administrator but it still gives the same error :( – Ricewind619 Mar 13 '22 at 17:31
  • which operating system please ? which code editor also ? – D.L Mar 13 '22 at 19:15
  • OS is windows 10. However the same issue arised while using Windows 7. Code editor is the default IDLE. – Ricewind619 Mar 14 '22 at 00:28
  • Got the issue resolved. Apparently it was due to my firewall (Tiny Wall). Had to allow exemptions to both python.exe and pip.py (Whitelist by executables then choose them in the python directory) – Ricewind619 Mar 14 '22 at 02:28

0 Answers0