How to install Pygame for Python 3

How to install directly from internet

Before installing pygame, you are supposed to install a python IDE/editor. Most people use Visual Studio and PyCharm. I’m assuming that you already have PyCharm, or other Python editor/IDLE.

Now go and run command prompt, and copy and paste this:

pip3 install pygame

It may take some time depending on your internet speed. If this command doesn’t work for you, copy and paste this:

sudo easy_install -U pygame

If you get an error “sudo/pip3 is not recognized as internal…”. You need to change your directory in command prompt to python\script. Then run those codes again. If you don’t know how to change the directory in cmd here is the tutorial.

If it says that new update is available, it is not mandatory to update it but you can if you want to just paste it on command prompt

python -m pip install --upgrade pip

It will once again, download and install some packages.

Advertisements

One Comment Add yours

  1. Good tutorial for installing pygame. This was how installed pygame also!

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s