我在一个Linux虚拟机上尝试了这个方法,结果非常成功。但是,在Windows 7上使用PyPy运行“pip install pil”时,会出现一些定义重复的警告:
~\Windows\v7.1\include\basetsd.h(76) : warning C4114: same type qualifier used more than once
通过在安装好的PIL源代码中编辑#undef INT8/16/32 UINT8/16/32可以解决这个问题,但最终可能会遇到以下错误:
LINK : fatal error LNK1181: cannot open input file 'python27.lib' error: command 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe' failed with exit status 1181
这个方法对于Windows7上的CPython和Linux上的PyPy都可以直接使用。但是,有没有人知道如何让它在Windows上的PyPy上运行呢?