Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

downloading pygame dependencies with homebrew; config.py file doesn't recognize them [duplicate]

Tags:

python

pygame

I have following issue of installing pygame package.

In file included from src/_numericsurfarray.c:23:
src/pygame.h:106:10: fatal error: 'SDL.h' file not found
#include <SDL.h>
         ^
1 error generated.
error: Setup script exited with error: command 'gcc' failed with exit status 1

System information

  • Mac OS-10.9.2
  • python version- Python 2.7.5 :: Anaconda 1.6.1 (x86_64)

Any suggestion will be greatly appreciate ? Thanks.

like image 788
J4cK Avatar asked Nov 23 '22 21:11

J4cK


1 Answers

Here (OSX Mavericks) I got able to install this way:

brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
pip install https://bitbucket.org/pygame/pygame/get/default.tar.gz

("default" branch is on commit e3ae850 right now)

Source: https://bitbucket.org/pygame/pygame/issue/139/sdlh-not-found-even-thought-it-exists#comment-3822470

See this other StackOverflow question too: PyGame in a virtualenv on OS X with brew?

like image 144
alanjds Avatar answered Nov 25 '22 10:11

alanjds