Open your PyCharm project. Go to File->Settings->Project->Project Interpreter. There will be a list of all installed modules on the current python environment you are using. If pygame is not listed there, it hasn't been installed for that PyCharm project (using that python environment).

You can install it by using PyCharm interface, just click on the + sign and search for pygame and click install.

Answer from Dinko Pehar on Stack Overflow
🌐
Reddit
reddit.com › r/pygame › pygame is not working on pycharm
r/pygame on Reddit: Pygame is not working on pycharm
December 14, 2019 - Pygame works great with Pycharm. You need to check your Python interpreter path settings inside Pycharm. Also sorry for being arrogant assho**, but that is the true: "Google is your friend!" So always try to search your issue.
Discussions

python - Cannot install pygame in Pycharm - Stack Overflow
I'm using python 3.8. I installed successfully pygame on another computer (lenovo yoga, same OS) and worked fine. Then I tried to install the same package on this computer (the Asus) using pip and worked just fine. The issue is that when I try to import pygame in PyCharm the module seems not to ... More on stackoverflow.com
🌐 stackoverflow.com
python - Can't import pygame in PyCharm - Stack Overflow
Whenever I type import pygame in PyCharm it says the module isn't installed, but I can import it in the terminal in python mode. ... in your script. you can check if this lib or module apperas in the sys.path list. probably not. and you need to append it. More on stackoverflow.com
🌐 stackoverflow.com
Pygame in PyCharm CE (import problem)
Hello. I’m new to python. I’ve followed various tutorials on YouTube but sometimes I hit a wall. Sometimes I can’t import in to my pycharm. I’ve recently tried importing pygame. I installed pygame in the terminal with pip3. The version I am using in pycharm is python 3.9.1 Pygame version ... More on forum.freecodecamp.org
🌐 forum.freecodecamp.org
0
0
February 22, 2021
Unable to import PyGame in PyChart

Don't mind the username, haven't used Reddit in years to get rid of my addiction of the app

More on reddit.com
🌐 r/pygame
8
4
September 17, 2023
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360000300680-Add-pygame-to-PyCharm
Add pygame to PyCharm – IDEs Support (IntelliJ Platform) | JetBrains
July 16, 2018 - I installed pygame in my windows 10 pc and it works fine python shell but doesn't work in PyCharm showing the result of it not being add to PyChar. How can I add it to PyCharm?
🌐
Super User
superuser.com › questions › 1500606 › pycharm-cant-import-pygame-versions-not-compatible
Pycharm can't import pygame - versions not compatible? - Super User
So if you installed e.g. pygame into Python Installation A with pip A, that module won't be available to Python Installation B (which has it's own version of pip ex. pip B). ... Regarding your "compatibility" question, looking at PyGame on PyPI (PyPI is where pip pulls modules from) it seems PyGame 1.9.6 supports Python 2.7 and Python 3.4 - 3.8.
Find elsewhere
🌐
freeCodeCamp
forum.freecodecamp.org › python
Pygame in PyCharm CE (import problem) - Python - The freeCodeCamp Forum
February 22, 2021 - Hello. I’m new to python. I’ve followed various tutorials on YouTube but sometimes I hit a wall. Sometimes I can’t import in to my pycharm. I’ve recently tried importing pygame. I installed pygame in the terminal with pip3. The version I am using in pycharm is python 3.9.1 Pygame version is 2.0.1. When I type import and pygame, a list comes up but pygame logo is a folder.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360006798399-Pycharm-Pygame-error
Pycharm Pygame error – IDEs Support (IntelliJ Platform) | JetBrains
December 8, 2019 - '''C:\Users\<username>\PycharmProjects\<Name of the project>\venv\Lib\site-packages''' When pygame is in this directory, the import pygame statement on the IDE should work. If not, turn the computer on and off 3 times while saying bloody pygame in front of a mirror.
🌐
YouTube
youtube.com › watch
How to fix "Install pygame Failed" on PyCharm 2023- Change Python Interpreter Version on PyCharm! - YouTube
In this video, I'll show you how to fix this error. Hope it helped someone!
Published   February 1, 2023
🌐
Reddit
reddit.com › r/pygame › unable to import pygame in pychart
r/pygame on Reddit: Unable to import PyGame in PyChart
September 17, 2023 - You should install pygame(-ce) from within PyCharm, so either go to the Terminal (in PyCharm) and type this to install pygame-ce (recommended)
🌐
Reddit
reddit.com › r/pygame › why can't i import pygame?
Why can't I import pygame? : r/pygame
October 9, 2017 - Nothing special about 3.6, it's just that PyCharm was at some point aimed at a different interpreter and never updated. You're on a Windows system which doesn't follow the standard rules for the python command. If all you're using is Python 3, then the python and pip commands point at the latest version of Python on your system, in this case 3.6.2. So when you pip install pygame it installs in the site-packages directory of the latest version (Again, 3.6.2) but when PyCharm is running your code (before you fixed it) was running 3.5.2, which didn't have pygame in its site-packages.
🌐
Reddit
reddit.com › r/pygame › i can't import pygame
r/pygame on Reddit: I can't import PyGame
July 10, 2021 -

Hello everyone,

So I tried to install PyGame for a project, but PyCharm (my IDE) don't recognize PyCharm when I try to import it

I did the following:

In my cmd, I wrote " python3 -m pip install -U pygame --user"

It did everything right, I even tested it and it turned out fine.

But when I write "import pygame" in PyCharm, the IDE doesn't recognize it.

(I'm using Python 3.9 btw)

🌐
Quora
quora.com › How-can-I-import-pygame-in-PyCharm
How to import pygame in PyCharm - Quora
Answer (1 of 2): Thanks for your question, it’s is nice and short! Being this short though, it may be interpreted in multiple ways; so, let me try to guess some that make sense. I am convinced that if you invest time in the below resources your answer will be answered. * How do I install PyGam...
🌐
Reddit
reddit.com › r/learnpython › can’t install pygame to pycharm
r/learnpython on Reddit: Can’t install Pygame to PyCharm
December 10, 2019 -

I ran “pip install pygame” through command prompt and it was successful, however when I tried installing pygame into PyCharm through the Settings > Project Interpreter > + and clicked install package on pygame, it fails and says “EOF when reading a line”.

Does anyone know how to fix this so I can install pygame into PyCharm?

🌐
Stack Exchange
gamedev.stackexchange.com › questions › 203684 › pygame-does-not-respond-when-running-this-program-in-pycharm
python - Pygame does not respond when running this program in PyCharm - Game Development Stack Exchange
December 14, 2022 - from tabnanny import check from tkinter import E from turtle import distance import pygame, math, serial, numpy import asyncio import websockets import keyboard pygame.init() #constant based on li...
🌐
GitHub
github.com › pygame › pygame › issues › 3704
Error installing Pygame in Pycharm · Issue #3704 · pygame/pygame
February 8, 2023 - Path for JPEG not found. ...Found include dir but no library dir in prebuilt-x64. DLL for freetype: prebuilt-x64/SDL2_ttf-2.0.15/lib/x64/libfreetype-6.dll --- For help with compilation see: https://www.pygame.org/wiki/CompileWindows To contribute to pygame development see: https://www.pygame.org/contribute.html --- [end of output] note: This error originates from a subprocess, and is likely not a problem with pip.
Author   pygame