问题:
C:\Users\Bing\Desktop\ssl-1.15>python setup.py build
running build
running build_py
running build_ext
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.
解决方法:
方法1. 安装Visual Studio 2003.
后面的两种方法都是要安装mingw的. 下载地址:
方法2. 在当前目录下或者在%HOME%目录下创建名为"setup.cfg"的文件. 里面填上:
[build]
compiler=mingw32
再执行
python setup.py install
就OK了.
方法3. 直接执行python setup.py build -c mingw32 install.
参考自:
阅读(2492) | 评论(0) | 转发(0) |