Kajice
Kajice

Reputation: 712

Pygame window not opening

I have python 3.8 and pygame installed. I am using Pycharm. On my Windows desktop pc at home, everything works perfectly as intended. However on my mac, when I run my code, the python.app icon starts jumping in my dock indefinitely but no window is opening. There are no errors, and everything else works perfectly fine. Just the window doesn't open.

To illustrate what I mean:

Upvotes: 3

Views: 10264

Answers (4)

Thomas Stuart
Thomas Stuart

Reputation: 23

Rosendo and junjia are correct, you need to install pygame 2.0.0. I was experiencing the same issue (window wasn't opening...). The exact command for mac users:

pip3 install pygame==2.0.0.dev6

Upvotes: 1

Mayank Soni
Mayank Soni

Reputation: 91

In IDLE make sure you start with pygame.init()

Upvotes: 0

Junjia Wang
Junjia Wang

Reputation: 51

This is because your python version is not match with your pygame version. If your are using Python 3.8, please update your pygame to 2.0.0

Upvotes: 0

Rosendo R Pili
Rosendo R Pili

Reputation: 96

I had this same issue. Go to the bottom right of the pyCharm screen and click on Python3.8 .

A list with interpreter settings should appear.
Go to project interpreter and double click on the version of Pygame you are running and update it to 2.0.0dev6.

Upvotes: 7

Related Questions