apt - No module named pygame - Ask Ubuntu
askubuntu.com › questions › 789414I have two Ubuntu VMs. On one of them, I can't seem to install PyGame. I've tried installing through various methods: sudo apt-get install python-pygame. (Remove and reinstall pygame a couple times) Building from source (also fails) Using pip (also fails) The core issue seems to be that when I import pygame with Python 2, I get No module named ...
ModuleNotFoundError: No module named 'pygame'
python-forum.io › thread-21867Threads: 394. Joined: Sep 2016. Reputation: 169. #4. Oct-18-2019, 05:59 PM. Just link Pycharm with the python interpreter that has pygame that you installed via terminal. Pygame dependencies should be. 1. sudo apt-get install python3-dev python-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python3 ...
apt - No module named pygame - Ask Ubuntu
https://askubuntu.com/questions/789414I have two Ubuntu VMs. On one of them, I can't seem to install PyGame. I've tried installing through various methods: sudo apt-get install python-pygame. (Remove and reinstall pygame a couple times) Building from source (also fails) Using pip (also fails) The core issue seems to be that when I import pygame with Python 2, I get No module named ...