Installing pygame issue

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
baz123
Posts: 166
Joined: Thu Jan 12, 2017 9:23 pm

Installing pygame issue

Post by baz123 »

New install and I am trying to install pygame via pip. It fails with this message;

Code: Select all

Collecting pygame
  Downloading pygame-1.9.3.tar.gz (3.0MB)
    100% |████████████████████████████████| 3.0MB 26kB/s
    Complete output from command python setup.py egg_info:

    WARNING, No "Setup" File Exists, Running "config.py"
    Using UNIX configuration...

    sh: 1: sdl-config: not found
    sh: 1: sdl-config: not found
    sh: 1: sdl-config: not found
    sh: 1: freetype-config: not found
    sh: 1: freetype-config: not found
    sh: 1: freetype-config: not found

    Hunting dependencies...
    WARNING: "sdl-config" failed!
    WARNING: "freetype-config" failed!
    Unable to run "sdl-config". Please make sure a development version of SDL is                                         installed.

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-T6                                        utwj/pygame/
I suspect that it may be because I do not have any X Server installed. If I am right, do I need the whole of LXDE or is there an alternative method?

Cheers
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Installing pygame issue

Post by Fourdee »

Hi,
Hunting dependencies...
WARNING: "sdl-config" failed!
WARNING: "freetype-config" failed!
Appears these are required for pygame and need to be installed.

Code: Select all

apt-get install 	libfreetype6-dev libsdl1.2-dev
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply