【发布时间】:2016-12-03 09:05:02
【问题描述】:
我从https://github.com/sourabhv/FlapPyBird 安装了 FlapPyBird 存储库。我已经安装了 libpng,但是当我尝试使用 python flappy.py 运行程序时,我得到了
Failed loading libpng.dylib: dlopen(libpng.dylib, 2): image not found
关于什么是错的任何想法? 谢谢
【问题讨论】:
-
在终端中运行
echo $DYLD_LIBRARY_PATH时的输出是什么? (它应该是空的。) -
因为您的 DYLD_LIBRARY_PATH 可能是永久设置的——例如,在您的 ~/.bash_profile 中——即almost always an indication that you are doing something wrong。