SDL directory not found by Pygame193 install

I get this diagnostic when i run pip.3.6 to install pygame 193:

/usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-3.6/src/scrap.o -L/NEED_LIB_PATH_FIX -lSDL -o build/lib.macosx-10.6-intel-3.6/pygame/
ld: warning: directory not found for option '-L/NEED_LIB_PATH_FIX’
ld: library not found for -lSDL
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command ‘/usr/bin/clang’ failed with exit status 1
I think I have properly in stalled SDL2.framework in /Library/Frameworks/SDL2.frameworks
I stopped the file not found diagnostics by moving all the SDL2 .h files over to the python3.6 headers directory.


I wonder what mac you are on? There should be binary wheels so that you don’t need to compile the library yourself.

python --version
python -c "import pygame;print(pygame.version.ver);print(pygame.__file__)"
brew --version
uname -a

There’s more compiling info here: but you probably need to install these dependencies in homebrew.

brew install sdl sdl_image sdl_mixer sdl_ttf portmidi