I am having serious problems with pygame and pygame zero:
Any suggestions? I was careful installing everything (I even keep a log) but it seems there are multiple instances of python, and the pgzero (and pygame) 'installations' are not matching up! Any help??
- pgzrun doesn't work ("bash: pgzrun: command not found)
[x]I cannot install pgzero using pip (sudo: pip: command not found). But SOMETHING happens using pip3 (sudo pip3 install pgzero) -- see output below
[x]Mu Editor CAN run pgzero programs (using the pygame zero 'mode') -- so did IT install an instance of pgzero for its exclusive use??
Output:[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.
Collecting pgzero[/b]
Downloading https://files.pythonhosted.org/packages/2c/66/bc46c203802d47fa30a6caa92d13392274bcbebbb9ffcd0c5ed8030b3611/pgzero-1.2.1-py3-none-any.whl (71kB)
100% |████████████████████████████████| 71kB 1.1MB/s
Collecting numpy (from pgzero)
Downloading https://files.pythonhosted.org/packages/45/b2/6c7545bb7a38754d63048c7696804a0d947328125d81bf12beaa692c3ae3/numpy-1.19.5-cp36-cp36m-manylinux1_x86_64.whl (13.4MB)
100% |████████████████████████████████| 13.4MB 52kB/s
Collecting pygame~=2.0 (from pgzero)
Downloading https://files.pythonhosted.org/packages/72/49/bd2fcbadb6a55bb24284bad4f530189401c99ffc234d51ba54756a776eb2/pygame-2.6.0.tar.gz (15.8MB)
100% |████████████████████████████████| 15.8MB 44kB/s
Complete output from command python setup.py egg_info:
Skipping Cython compilation
WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using UNIX configuration...
/bin/sh: 1: sdl2-config: not found
/bin/sh: 1: sdl2-config: not found
/bin/sh: 1: sdl2-config: not found
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: freetype-config: not found
/bin/sh: 1: freetype-config: not found
/bin/sh: 1: freetype-config: not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-o5t45c01/pygame/setup.py", line 426, in <module>
buildconfig.config.main(AUTO_CONFIG)
File "/tmp/pip-build-o5t45c01/pygame/buildconfig/config.py", line 234, in main
deps = CFG.main(**kwds, auto_config=auto)
File "/tmp/pip-build-o5t45c01/pygame/buildconfig/config_unix.py", line 245, in main
raise RuntimeError('Unable to run "sdl-config". Please make sure a development version of SDL is installed.')
RuntimeError: Unable to run "sdl-config". Please make sure a development version of SDL is installed.
Hunting dependencies...
WARNING: "sdl2-config" failed!
WARNING: "pkg-config freetype2" failed!
WARNING: "freetype-config" failed!
---
For help with compilation see:
https://www.pygame.org/wiki/CompileUbuntu
To contribute to pygame development see:
https://www.pygame.org/contribute.html
---
----------------------------------------
[b]Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-o5t45c01/pygame/[/b]
The bold parts are in orange and red (respectively) in my terminal, so they must be 'important'.Any suggestions? I was careful installing everything (I even keep a log) but it seems there are multiple instances of python, and the pgzero (and pygame) 'installations' are not matching up! Any help??