Python pygame error : Failed loading libpng.dylib: dlopen(libpng.dylib, 2): image not found
I installed the FlapPyBird repo from https://github.com/sourabhv/FlapPyBird . I have libpng installed but when i try to run the program with python flappy.py i get Failed loading libpng.dylib: dlopen(libpng.dylib, 2): image not found Any ideas about whats wrong? Thanks Maybe you must install libpng ? You can do it with homebrew: brew install libpng Use python3 interpreter and it will work Try: brew unlink libpng && brew link libpng With me it was some problems with the linking. I had the same issue. Installing the following with homebrew fixed it: brew install sdl sdl_image sdl_mixer sdl_ttf