[SOLVED] How to update pygame?

the recent version of my local pygame is 1.9.6 and I need it to be 2. at least.
$ sudo apt upgrade or $ sudo apt update did nothing to it.

$ sudo apt --only-upgrade install pygame did nothing as well.

by doing $ pip install pygame==2 it accepted it but didn’t change the version number. I always use $ pip freeze to check the version of each package.

Have you tried pip3 instead of pip?

I don’t have a lot of experience upgrading python packages but pip install has a -U/--upgrade option, maybe you need to provide that in order to get pip to upgrade an installed package?