442
442

Reputation: 1

PIP does not work when I try to install pygame

I tried to install pygame with the command pip install pygame and there is an error message:

Fatal Python error: initfsencoding: unable to load the file system codec

ModuleNotFoundError: No module named 'encodings'

Current thread 0x000019c8 (most recent call first):

Upvotes: 0

Views: 98

Answers (2)

Mohamed Elgazar
Mohamed Elgazar

Reputation: 794

This is a known issue with the pygame installer. Try uninstalling and reinstalling pygame using the following commands:

pip uninstall pygame
pip install pygame

Upvotes: 0

NFeruch - FreePalestine
NFeruch - FreePalestine

Reputation: 1145

Try running pip install wheel, pip install encoding, and then pip install pygame

Alternatively, check your environment variables to make sure your modules are findable Fatal Python error on Windows 10 ModuleNotFoundError: No module named 'encodings'

Upvotes: -1

Related Questions