Home > Mobile >  PIP does not work when I try to install pygame
PIP does not work when I try to install pygame

Time:10-15

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):

CodePudding user response:

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'

CodePudding user response:

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

pip uninstall pygame
pip install pygame
  • Related