cant import pygame : pygame
www.reddit.com › r › pygameTry adding import sys to the start and see if it bugs out on sys. For that matter, try print (sys.path) (after importing sys, that is) and see if pygame is actually located in one of the paths. 1 level 1 · 3 yr. ago You have to give your ide a path to pygame.
I can't import Pygame. : pygame
https://www.reddit.com/r/pygame/comments/cflatn/i_cant_import_pygameWhen using PyCharm the modules it looks for by default are in the /venv (virtualenv) folder. By default, it only has pip and few essentials. If you open the integrated terminal in PyCharm and run $ pip install PyGame there, it will install into the /venv folder and then any project scripts will have access to it. If you don't want to use that terminal, run $ source venv/bin/activate from your ...
I can't import Pygame. : pygame
www.reddit.com › cflatn › i_cant_import_pygameYou can then again run $ pip install PyGame to install to the virtual environment rather than to your system. If there is no /venv folder, then PyCharm's settings need to be changed, as it is using the system's Python interpreter and Pip. Go to file -> settings. Search 'interpreter' and click the 'project interpreter' section.
PyGame can't import - replit
replit.com › talk › askI'm trying to learn how to use PyGame, so I'm running code from an online tutorial. Upon running, repl.it couldn't import the PyGame module. A quick Google search says I need to use the shell. I opened up the shell and installed PyGame. It cached the module, so I ran the program. It still wouldn't import it. I returned to the shell, and it now can't find any file called 'pygame'. Edit: After ...
PyGame can't import - Replit
https://replit.com/talk/ask/PyGame-cant-import/28102I'm trying to learn how to use PyGame, so I'm running code from an online tutorial. Upon running, repl.it couldn't import the PyGame module. A quick Google search says I need to use the shell. I opened up the shell and installed PyGame. It cached the module, so I ran the program. It still wouldn't import it. I returned to the shell, and it now can't find any file called 'pygame'.