So I did install pip into my python, I watched online tutorials about it because pip was not working for me in the first place in vscode , then I pip install pygame to vs code after that which it did install (saw there was a loading bar) and then written my code with import pygame. Whenever the code is run, it was saying that no module named pygame is found. help. I saw a similar post having this same problem but I wasnt understanding the terms and what theyre talking about. pls explain in stupid terms
PS C:UsersAccountOneDriveDocumentsProgramming> pip install pygame
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pygame in c:usersAccountappdatalocalpackagespythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0localcachelocal-packagespython312site-packages (2.6.0)
PS C:UsersAccountOneDriveDocumentsProgramming> & "C:/Users/Account/AppData/Local/Programs/Python/Python312/python.exe" "c:/Users/Account/OneDrive/Documents/Programming/Platform Game/Platform Game.py"
Traceback (most recent call last):
File "c:UsersAccountOneDriveDocumentsProgrammingPlatform GamePlatform Game.py", line 4, in <module>
import pygame
ModuleNotFoundError: No module named 'pygame'
I tried redownloading pip but to no avail. I want to be able to use pygame by downloading it. Doesnt work help pls
Jumbo Hotdog is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.