'Uninstalling pygame on linux

I have been trying to uninstall pygame, but i'm not sure how and i couldn't find any resources to help me. I had installed pygame with the command python3 -m pip install -U pygame -- user, and attempted to uninstall it with sudo apt-get remove --auto-remove python-pygame, but it spat back Package 'python-pygame' is not installed, so not removed. but, in the terminal, I can do python3 -m pygame.examples.aliens and the aliens game will show up.

edit: please note that i am new to linux and am running galliumos



Solution 1:[1]

PyGame can be uninstalled with the command

python3 -m pip uninstall pygame --user

Solution 2:[2]

pip uninstall packagename works fine

https://askubuntu.com/questions/1325383/how-to-uninstall-pygame-from-ubuntu

found it in footnotes

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rabbid76
Solution 2 Tod Bundyvale