1

I am trying to install pygame on my Chromebook (using the Linux 'Terminal' app included with Chrome Developer Mode) with the following command:

python3 -m pip install -U pygame --user

I found these instructions HERE: https://www.pygame.org/wiki/GettingStarted

I am constantly getting the same error:

denverhogan3@penguin:~$ python3 -m pip install -U pygame --user
Collecting pygame
  Using cached https://files.pythonhosted.org/packages/c7/b8/06e02c7cca7aec915839927a9aa19f749ac17a3d2bb2610b945d2de0aa96/pygame-2.0.1.tar.gz
Complete output from command python setup.py egg_info:


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
/tmp/pip-install-joiz94kc/pygame/setup.py:44: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
  distro = platform.linux_distribution()
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-joiz94kc/pygame/setup.py", line 318, in <module>
    buildconfig.config.main(AUTO_CONFIG)
  File "/tmp/pip-install-joiz94kc/pygame/buildconfig/config.py", line 221, in main
    deps = CFG.main(**kwds)
  File "/tmp/pip-install-joiz94kc/pygame/buildconfig/config_unix.py", line 194, in main
    DependencyProg('SDL', 'SDL_CONFIG', 'sdl2-config', '2.0', ['sdl']),
  File "/tmp/pip-install-joiz94kc/pygame/buildconfig/config_unix.py", line 39, in __init__
    self.ver = config[0].strip()
IndexError: list index out of range

Hunting dependencies...

---
For help with compilation see:
    https://www.pygame.org/wiki/CompileDebian
To contribute to pygame development see:
    https://www.pygame.org/contribute.html
---


----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-joiz94kc/pygame/

I tried a couple of solutions to those problems but nothing worked for me (I tried upgrading pip, uninstalling python2 and some other options).

I also tried visiting the website described by the error, but it came back to being non-existant?!

I would be sincerely grateful if someone can help me with this problem and explain the situation as I am fairly new to python.

I am using:

-a Lenovo 32GB Chromebook with an ARM64 chip (found using the command $ sudo apt --version),

-python 3.7.3 64-bit (python version found using the command $ python3 --version),

-pip 18.1 (pip version found using the command $ python3 -m pip --version)

Also, I have 7.5 GB of disk space dedicated to Linux applications.

Thank you SO much!

Tooth Soup
  • 23
  • 3
  • Take a look [here](https://stackoverflow.com/questions/19579528/pygame-installation-sdl-config-command-not-found) – sloth Mar 18 '21 at 14:12

0 Answers0