Windows 8 Cython 的配置(解决Unable to find vcvarsall.bat问题)

关键是安装之前配置编译器.

1.下载MinGW 编译器

http://www.mingw.org/download.shtml

2.把编译器路径(例如C:\Program Files (x86)\CodeBlocks\MinGW\bin)加入环境变量列表

3.Python路径(例如C:\Python34\Lib\distutils)里面新建一个distutils.cfg文件,内容为以下两行:

[build]

compiler = mingw32

4.安装Cython.比如通过pip install Cython,或者手动下载安装包通过python setup.py install

posted @ 2014-07-18 23:40  LisPythoniC  阅读(1133)  评论(0编辑  收藏  举报