About 149,000 results
Open links in new tab
  1. python - ImportError: No module named 'pygame' - Stack Overflow

    Aug 19, 2013 · Open up a python shell and type import sys; print sys.path. If pygame isn't on your PYTHONPATH, then you need to add it. It's weird easy_install didn't put it there. Is …

  2. python - Instalando e importando o módulo Pygame no VSCode

    May 13, 2020 · Você deve instalar o pacote via terminal e não no IDLE. Abra o terminal do seu sistema e digite o que você estava tentando: python -m pip install pygame Se diferentes …

  3. How to import pygame in visual studio code? - Stack Overflow

    Jan 26, 2019 · 6 I use visual studio code for coding (python) and now I have to write a program with pygame for my project and I can't import pygame in visual studio code (I can import it with …

  4. python - Import "pygame" could not be resolved Pylance ...

    Jun 20, 2021 · Step 1 (Matching Version) Click the correct directory path (matching the one in which Pygame is currently installed) You may also edit the default import path from the Python …

  5. python - Importing Pygame, ModuleNotFoundError: No module …

    Jun 13, 2020 · I’m having trouble importing the Pygame module. I installed pygame using the following command in the terminal: pip install pygame When I enter import pygame and run …

  6. python - Import "pygame" could not be resolved - Stack Overflow

    Mar 31, 2022 · DId you install pygame by running pip install pygame? If so, then it is possible that the python installation tied to your pip is different from the one you are using to import the …

  7. python - Can't import pygame - Stack Overflow

    Nov 20, 2020 · 0 I am having the same (or very similar) issue, as here (Importing Pygame, ModuleNotFoundError: No module named 'pygame.base') but the recommendations didn't …

  8. python - Can someone please explain this weird Pygame …

    It imports all the available pygame modules into the pygame package. The second line is optional, and puts a limited set of constants and functions into the global namespace of your script.

  9. How does one successfully download AND import pygame?

    Apr 30, 2020 · Now just finish installing python. Next you need to install pygame with pip install pygame in your cmd - run it as administrator just to be safe. If you receive errors try updating …

  10. python - ModuleNotFoundError: No module named 'pgzrun' when …

    Jun 22, 2020 · 4 Got to python/scripts path and try to uninstall it with python -m pip uninstall pygame then install it with python -m pip install pygame --user When installing a python …