I use it when coding import pygame Want to import pygame
But there will always be an error after running ModuleNotFoundError: No module named 'pygame'
Operation results and error reporting contents :
Traceback (most recent call last): File "C:\Users\Administrator\Desktop\***\pg.py", line 1, in <module> import pygameModuleNotFoundError: No module named 'pygame'
notes : There is a folder named after me in the error report , So it's changed here
I used to put pygame File copy to scripts in , But it didn't work .
Who can help me solve this problem T^T
By the way, explain to me the reason and principle
Try this.