Matplotlib import error ft2font

笑着哭i 提交于 2019-12-06 16:31:45

I had the identical problem, and submitted a request to Enthought for help with this and got the following solution (from Jonathan March who commented above).

From the Canopy Tools menu, open a Canopy Terminal window and call:

enpkg --no-deps matplotlib 1.2.1
enpkg --no-deps libpng 1.2.40
enpkg --no-deps freetype 2.4.4

Apparently the issue, at least for my case, is that matplotlib 1.3 refers to a library which is not in OS X 10.6. So the workaround is to downgrade matplotlib.

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