我需要在 Win 7 x64 (Python 2.7 x64) 上安装 matplotlib。我安装了 MS VS 10(使用 MS C++ 编译器)。
跑步时
pip install matplotlib
我在 pip.log 中得到了这个:
...
cxxextensions.c
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild\amd64 freetype.lib z.lib /EXPORT:initft2font build\temp.win-amd64-2.7\Release\src/ft2font.obj build\temp.win-amd64-2.7\Release\src/mplutils.obj build\temp.win-amd64-2.7\Release\CXX\cxxsupport.obj build\temp.win-amd64-2.7\Release\CXX\cxx_extensions.obj build\temp.win-amd64-2.7\Release\CXX\IndirectPythonInterface.obj build\temp.win-amd64-2.7\Release\CXX\cxxextensions.obj /OUT:build\lib.win-amd64-2.7\matplotlib\ft2font.pyd /IMPLIB:build\temp.win-amd64-2.7\Release\src\ft2font.lib /MANIFESTFILE:build\temp.win-amd64-2.7\Release\src\ft2font.pyd.manifest
LINK : fatal error LNK1181: cannot open input file 'z.lib'
error: command '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\link.exe"' failed with exit status 1181
WTH 是 z.lib?它不是用于压缩的 zlib,是吗?