Python Forum
pygame installation problems
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pygame installation problems
#1
Hello everyone,

I'm completely new to the Python language or to coding whatsoever. I'm following a guide done by Rob Miles called "Begin to code with Python", at the moment I'm learning how to install and add Pygame library using python shell. I use Windows 10 for this.
I started by opening Windows PowerShell and typing "py -m pip install pygame --user", there were no problems with that, it even gave me the option to update to the last version and I did so.

Apparently after that I should be able to write "import snaps import * " in Python IDLE to import all the functions in the snaps library, but there is where I get the error, a window pops up saying "invalid syntax" and the secont "import" is highlighted in red. If i only try to import snaps I get this error "ModuleNotFoundError: No module named 'snaps'".

It does says that if I want to use snaps in other folders, simply copy the file snaps.py into the folder, funny enough that file does not exist anywhere in my computer.

I know that pygame is installed and working because if I run "py -m pygame.examples.aliens" in the windows PowerShell, I'm able to play the aliens game.

I've tried to google in diferent ways but I didn't find anyone with my same problem, and I'm not able to figure it out as I don't fully understand how this programs work.

Sorry for the massive text. Thanks in advance!
RockBlok likes this post
Reply


Messages In This Thread
pygame installation problems - by Gheryk - May-17-2018, 01:14 PM
RE: pygame installation problems - by metulburr - May-17-2018, 05:13 PM
RE: pygame installation problems - by Aikanwha - Dec-12-2018, 07:05 AM
RE: pygame installation problems - by awaz - Mar-12-2020, 01:23 AM
RE: pygame installation problems - by neronhat - Oct-28-2023, 11:29 AM
RE: pygame installation problems - by E_Mohamed - Nov-29-2023, 08:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyGame] Problems with jump code in pygame Joningstone 4 5,469 Aug-23-2021, 08:23 PM
Last Post: deanhystad
  (HELP GREATLY APPRECIATED) New user- Huge Pygame Installation Problem! Jbomb 1 2,896 Jan-12-2021, 07:32 PM
Last Post: MK_CodingSpace
  [Pygame] Problems with my textbox SheeppOSU 1 3,145 May-27-2019, 12:03 AM
Last Post: metulburr
  [pygame] Inventory problems. Weapons equipped to wrong slot SheeppOSU 6 4,108 May-07-2019, 02:46 AM
Last Post: SheeppOSU
  drawing, moving, and collision problems (pygame) SheeppOSU 26 15,092 Apr-22-2019, 03:09 AM
Last Post: SheeppOSU
  Problems with loading buttons (pygame) SheeppOSU 2 3,176 Apr-12-2019, 08:04 PM
Last Post: SheeppOSU
  [PyGame] Why didn't my installation of pygame work? JohnJSal 4 4,552 Jul-01-2018, 08:26 PM
Last Post: JohnJSal
  [PyGame] Installation problems leap 4 6,884 Jan-09-2017, 11:26 PM
Last Post: leap

Forum Jump:

User Panel Messages

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