r/pythonhelp • • Aug 26 '21

I cannot use any libraries on Linux

4 Upvotes

5 comments sorted by

1

u/MrPhungx Aug 26 '21

What Python version are you using? Do you have multiple installed on your system? Like Python 2 and 3? Try to do pip3 install pygame instead

1

u/boldisch Aug 26 '21

It says requirement already satisfied: pygame in /usr/local/lib/python3.9/dist-packages(2.0.1)

1

u/cndvcndv Aug 26 '21

That means it is already installed on python 3. Try to run python3 nem.py

1

u/boldisch Aug 26 '21

Thanks a lot. I tried this not one time but now it works! Thanks!

1

u/acecile Aug 26 '21

Sudo pip install is a very very very bad idea.