Python pygame error : Failed loading libpng.dylib: dlopen(libpng.dylib, 2): image not found

点点圈 提交于 2019-11-30 13:56:49

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 portmidi

Got the info from here:

http://brysonpayne.com/2015/01/10/setting-up-pygame-on-a-mac/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!