Failure import pygame in IDE on python 3.8.3

Viewed 124

I have downloaded pygame:

C:\>pip3 install pygame --user

Requirement already satisfied: pygame in c:\users\mpenn\appdata\local\programs\python\python38-32\lib\site-packages (2.0.0.dev8)

And I have python 3.8.3:

C:\>py
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:20:19) [MSC v.1925 32 bit (Intel)] on win32

But when I try to import pygame in my "Wing Personal 7" IDE, I get the error:

builtins.ModuleNotFoundError: No module named 'pygame'

This has only started happening since I updated python to 3.8.3 yesterday.

3 Answers

make sure your python directory(the one where all the modules are stored) is added to the PATH variable. There are already many tutorials to do so:

How do I add Python to the Windows PATH

or if that doesn't work for you, google is your best friend.

In Wing, you need to change python executable to the python version you are using. python executable is found in Project, Project Properties...

Make sure that pip is up to date. Try running:

pip3 install --upgrade pip
Related