Typing “import pygame” into Python 3.7.0 IDLE Shell raises ModuleNotFoundError after attempting to install Pygame 1.9.4

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Typing “import pygame” into Python 3.7.0 IDLE Shell raises ModuleNotFoundError after attempting to install Pygame 1.9.4



After experiencing some trouble with deprecated methods in Pygame 1.9.1 (see this question that I asked a few months ago), I finally got around to downloading/installing updated versions of Python as well as Pygame. I went to Start>Control Panel>Programs>Uninstall a Program and uninstalled both Python 3.1.4 and Pygame 1.9.1, then I successfully downloaded and installed Python 3.7.0 onto my computer.



I tried to download and install Pygame 1.9.4, but there is no .msi link on Pygame.org's downloads page, only a .tar.gz link. I downloaded it and a free trial of WinZip to unzip it, and I thought everything had worked, until I typed import pygame into the shell and got an error traceback along with a message that read: ModuleNotFoundError: No module named 'pygame'.


import pygame


ModuleNotFoundError: No module named 'pygame'



I think my issue is that it's not installed correctly, and I've also read about something called a Wheel file, which I don't know if I have and don't know how to find if I do. If anyone could help me sort this out, I'd be grateful. Thanks!





Do this, but replace 3.6 with 3.7.
– skrx
4 mins ago


3.6


3.7









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding

Visual Studio Code: How to configure includePath for better IntelliSense results

C++ virtual function: Base class function is called instead of derived