Python Forum
Pygame*import pygame ImportError: No module named pygame
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pygame*import pygame ImportError: No module named pygame
#1
my question here: So I'm new, and I wanted to make my first game following a tutorial, I've downloaded pygame and everything as instructed, but now when I want to import the module in "Atom" then there is an ImportError, I can't figure out why, because when I run "python3" in the terminal(Mac) and "import pygame" the its just fine .. if there is someone who know the solution to my problem, that would be really great.

my code here
Reply
#2
Atom can't run python by default. If you installed a plugin to run python through the editor, then make sure the plugin is doing the same thing you would if you were at the terminal. ie: open up the plugin settings, and make sure it's "python3" and not just "python".
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ModuleNotFoundError: No module named 'tkcalendar', Thonny, Windows 10 Edward_ 4 863 Apr-06-2025, 07:56 PM
Last Post: Edward_
  No module named 'importlib.metadata' EdVS 3 1,097 Jan-30-2025, 09:55 AM
Last Post: Larz60+
  pygame help aArtur 2 885 Aug-12-2024, 03:12 PM
Last Post: aArtur
  ImportError: cannot import name 'scipy_namespace_for' from 'scipy._lib._array_api' AgileAVS 0 1,879 Jul-15-2024, 08:45 AM
Last Post: AgileAVS
  ModuleNotFoundError: No module named 'athena_read' raman 2 1,322 Jul-01-2024, 07:52 AM
Last Post: Gribouillis
  no module named 'docx' when importing docx MaartenRo 1 5,711 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  is import cointegration_analysis a recognized module mitcht33 1 1,147 Nov-06-2023, 09:29 PM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 31,276 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 10,186 Oct-29-2023, 11:33 PM
Last Post: Serg
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 4,563 Oct-04-2023, 02:43 PM
Last Post: mandaxyz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020