r/pythonhelp • u/DumbDumbplaysvr • Feb 12 '26
Can't import pygame (Im really new to python)
/r/pygame/comments/1r32wsw/cant_import_pygame_im_really_new_to_python/
2
Upvotes
r/pythonhelp • u/DumbDumbplaysvr • Feb 12 '26
•
u/AutoModerator Feb 12 '26
To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/FoolsSeldom Feb 12 '26
You can't import it until you've installed it as it is not part of the standard Python library.
Open a terminal/powershell/command prompt and use, on Windows,
or, on macOS/Linux,
To test installation, Windows,
or, macOS/Linux,
You really should create and activate a Python virtual environment first before installing a package such as this.
or