I continued my investigation, and I seem to have found a fix. ‘Everything’ seem to be working well now! But I would like to know WHY and WHICH ONE fixed what! – I’m not experienced or knowledgeable enough to know. Here was my ‘fix’:
update/install ‘missing’ python packages (python-pygame, python-pygame-sdl2, python-sdl2, python3-sdl2)
upgraded pip and setup_tools, then reinstalled python package (pgzero) through PIP
(something else, but I forgot?)
Anyway, ‘all’ of my python/IDE/pygame/pgzero problems seem to be fixed! An you are right, it didn’t seem to be a problem with PIP (not part of the ‘fix’).
I just wish I knew what was wrong (and why the above ‘fixes’ worked), especially since there was so many (seemingly independent) problems!
Of course. I had posted it in a different post, and didn’t repeat it here (I was trying to reframe the problem for each specific issue). I don’t know if that output would have helped here. The only reference to PIP was:
[b]The directory '/home/garth/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/garth/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
and the CL error message ended with:
[b]Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-o5t45c01/pygame/[/b]
I haven’t tried the --prefer-binary option.
HOWEVER, everything seem to be working well now, despite the multiple problems: (pgzrun not working, pygame doesn’t work with both python and python3, pip not working – cannot install modules, …) Here was my ‘fix:
update/install ‘missing’ python packages (python-pygame, python-pygame-sdl2, python-sdl2, python3-sdl2)
upgraded pip and setup_tools, then reinstalled python package (pgzero) through PIP
(something else, but I forgot?)
I just don’t know WHY this worked (and what it had to do with PIP). I’m not experienced or knoweldgeable enough to know WHICH fixed WHAT!
Thanks for your reply!