我正在尝试安装matplotlib,用于在Mac OS X上用Python绘制应用程序.当我运行"python setup.py install"时,它给了我很多错误:http://pastebin.com/u7fL37ic.
一个快速片段:
src/ft2font.cpp:2170: error: ‘FT_LOAD_TARGET_MONO’ was not declared in this scope
src/ft2font.cpp:2171: error: ‘FT_LOAD_TARGET_LCD’ was not declared in this scope
src/ft2font.cpp:2172: error: ‘FT_LOAD_TARGET_LCD_V’ was not declared in this scope
src/ft2font.cpp:2175: error: ‘_ft2Library’ was not declared in this scope
src/ft2font.cpp:2175: error: ‘FT_Init_FreeType’ was not declared in this scope
src/ft2font.cpp: In destructor ‘virtual ft2font_module::~ft2font_module()’:
src/ft2font.cpp:2186: error: ‘_ft2Library’ was not declared in this scope
src/ft2font.cpp:2186: error: ‘FT_Done_FreeType’ was not declared in this scope
lipo: can't …Run Code Online (Sandbox Code Playgroud) 我试图在Mac OSX Lion中安装matplotlib.试图使用sourcefourge站点中的二进制文件,但我得到了这个错误:"matplotlib需要安装System Python 2.7".
我去了终端并输入了python --version并检查了要求.
在此之后我尝试使用pip,并且这样做é得到以下错误:
"src/_image.cpp:908:错误:无效使用不完整类型'struct png_info_def'"
你能告诉我如何安装它的线索吗?
非常感谢.
编辑:我找到了一种方法,无需安装新版本的python: