0

I have an idea for a game that uses the module ‘pygame’.

The thing is, I don’t know how to install it.

I have tried to open up cmd and type: pip install pygame

But it came up with an error saying: ‘pip is not recognized as an internal or external command’

So I came to the stack overflow community for help.

Rabbid76
  • 142,694
  • 23
  • 71
  • 112
  • 2
    *"pip is not recognized as an internal or external command"* - So this problem has nothing to do with Pygame as you cannot use "pip". – Rabbid76 Feb 05 '21 at 20:40
  • Firstable you need to install pip properly. https://stackoverflow.com/questions/4750806/how-can-i-install-pip-on-windows Then try again – Arseniy Feb 05 '21 at 20:42

2 Answers2

0

To install pygame you need to write the command:

pip install pygame

in your command prompt, if that does not work try:

pip3 install pygame

If that fails, make sure to install python from this link. Make sure to add python and pip to your environment path. Restart your computer and then try again!

If you have already installed python, try running the installer again and this time including pip in the environment path or you can add it manually, this link will help you do this.

0

You need to add the path of your pip installation to your PATH system variable. After this, use: pip install pygame