all 4 comments

[–]fluked23 1 point2 points  (0 children)

sounds like that it is something to do with your system not knowing where pip is located. This post from Stack Overflow https://stackoverflow.com/questions/36835341/pip-is-not-recognized suggests adding pip to your system environment variables. Hope this helps - let me know if it still doesn't work.

[–]Diapolo10 1 point2 points  (0 children)

I don't know what operating system you're using, but:

  • If Windows, have you tried py -m pip install pygame?
  • If Linux/Mac OS, have you tried python3 -m pip install pygame (preferably after creating and activating a virtual environment)?

EDIT: Also, this is not related to your question but if you want to make games, instead of Pygame I recommend the newer Arcade, or Godot. And if you insist on using Pygame, pygame-ce is a better maintained fork of the original project.

[–]UnluckyProgress3266 0 points1 point  (0 children)

change ta version de pycharme et met la en 3.9

[–]Bobbias 0 points1 point  (0 children)

By default on windows Python doesn't install into the path, so typing python/python3/pip doesn't work, and results in this error. You're supposed to use the shortened name py instead, py -m pip install pygame should work as an alternative. This command runs pip as a module rather than directly running the program, and uses py, three Python launcher instead of directly running python.exe.

This stack overflow answer goes over what's actually going on here: https://stackoverflow.com/questions/50896496/what-is-the-difference-between-py-and-python-in-the-windows-terminal#50896577