4

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.

Daniil Ryzhkov
  • 7,416
  • 2
  • 41
  • 58
Owen Penn
  • 163
  • 9

3 Answers3

2

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.

Vedant36
  • 318
  • 1
  • 6
1

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

Owen Penn
  • 163
  • 9
  • Did this solve it? In general, setting Python Executable in Project Properties to the value of sys.executable in the Python you want to use will solve issues like this. – Stephan Jul 08 '20 at 01:37
0

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

pip3 install --upgrade pip
Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
Pandapip1
  • 730
  • 5
  • 15