我刚刚将我的Mac OS更新到10.9,我发现我的Python模块中的一些(全部?)不再存在,尤其是Image one.
所以我尝试执行sudo pip install pil,但是我收到了这个错误:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/tk.h:78:11: fatal error: 'X11/Xlib.h' file not found
# include <X11/Xlib.h>
^
1 error generated.
error: command 'cc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)
我的Xcode是最新的,我不知道.PIL有可能还不兼容10.9吗?
我正在尝试安装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)