Python Forum
How do I get pygame module to work in Spyder? (Mac)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I get pygame module to work in Spyder? (Mac)
#11
(Dec-16-2022, 11:53 PM)snippsat Wrote: Use command line(Terminal) and use command that show.
This is basic stuff How to use the Terminal command line in macOS
I guess you used command line to install pygame?
It is pip install pygame.

Here on Windows the command is same on Mac
# pip version and path it install to
G:\div_code
λ pip -V
pip 22.3 from C:\python310\lib\site-packages\pip (python 3.10)

# Install
G:\div_code
λ pip install pygame
Collecting pygame
  Downloading pygame-2.1.2-cp310-cp310-win_amd64.whl (8.4 MB)
     ---------------------------------------- 8.4/8.4 MB 6.7 MB/s eta 0:00:00
Installing collected packages: pygame
Successfully installed pygame-2.1.2
Then path to python is for me(not for you most run same commands).
C:\python310\python that i would set in Spyder.

pygame 2.1.2 is already installed (via terminal).

pygame in "./.local/lib/python3.9/site-packages (2.1.2)"

Edit: I'm trying your solution (properly this time).

Edit2: I can't find the "python3.9" path for my interpreter.
Reply


Messages In This Thread
RE: How do I get pygame module to work in Spyder? (Mac) - by FirstBornAlbratross - Dec-17-2022, 02:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  keyboard module doesn't work in the microsoft version terminal of python. username 1 2,989 Feb-25-2021, 05:19 PM
Last Post: Larz60+
  pygame music doesn't work CompleteNewb 1 4,905 Jan-30-2021, 09:25 AM
Last Post: Tyrel
  Cannot make 'pandas' module to work... ellie145 2 4,335 Jan-05-2021, 09:38 PM
Last Post: ellie145
  My Python Console doesn´t work ModuleNotFoundError: No module named 'tokenize' RuanKishibe 1 3,290 Aug-06-2020, 10:07 PM
Last Post: deanhystad
  ModuleNotFoundError: No module named 'pygame' Cath 3 14,554 Oct-18-2019, 05:59 PM
Last Post: metulburr
  Pycharm Cannot Find Pygame Module Myang123 2 6,140 Aug-07-2019, 01:26 AM
Last Post: Myang123
  Spyder: Module Not Found jmair 2 20,420 Sep-25-2018, 05:14 PM
Last Post: jmair
  Attribute of module shelve doesn't work Ponomarenko Pavlo 1 5,171 Jul-12-2017, 06:08 PM
Last Post: buran
  Pygame*import pygame ImportError: No module named pygame CASPERHANISCH 1 9,851 Jun-05-2017, 09:50 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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