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

时间:2014-07-19 08:32:34   收藏:0   阅读:413

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

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

Windows 8 Cython 的配置(解决Unable to find vcvarsall.bat问题),布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!