At first I entered the command sudo pip3 install pygame in order to install pygame but then when I entered sudo apt install python3-pygame, It did not prompt me saying that it was already installed. What is the difference?
At first I entered the command sudo pip3 install pygame in order to install pygame but then when I entered sudo apt install python3-pygame, It did not prompt me saying that it was already installed. What is the difference?
apt is for Debian packages. pip is for Python packages.
python3-pygame is Python's pygame repackaged as a Debian package. So, technically, not the same as the Python package.
So the difference is how apt and pip report an already installed package.
They may not get you the same version.
pip will get the latest from the pypi package index.
apt will bring you the version that was included for your ubuntu/debian release.
pip can also be used in a virtualenv so as not to pollute your system packages.
In general the pip version will be the newer one.