Skip to content Skip to sidebar Skip to footer

How Do I Install Pygame For A New Version Of Idle? (windows)

I installed a new version of IDLE, and I'm trying to install Pygame. I tried to use the pygame module, but when I did, the error message Traceback (most recent call last): File 'C:

Solution 1:

Try installing a development version of pygame. The latest version is 2.0.0.dev16, get it with pip install pygame==2.0.0.dev16.

Solution 2:

If you don't know what version of python you're running with IDLE or are otherwise unable to access the correct python executable from your command line you can install packages using the pip._internals. Note that this is stronglydiscouraged by pip.

You could try the following in IDLE:

import pip
pip._internal.main(['install', 'pygame'])

If you do this, you should immediately restart IDLE afterwards and then try to import pygame.

Solution 3:

Run following commands

pip install --upgrade pip

pip install pygame==2.0.0.dev6

Post a Comment for "How Do I Install Pygame For A New Version Of Idle? (windows)"