按照教程,若是出现vcvarsall.bat找不到的状况,则须要安装正确版本的visual studio http://docs.cython.org/src/tutorial/cython_tutorial.htmlhtml
python 2.7.x使用的是vs2008,若是没有安装,能够安装vs2008 express版本。下图是查看vs所使用的vs编译器的版本的方法。 python
能够经过检查环境变量中VS90COMNTOOLS是否存在来肯定vs2008 express是否安装好。 git
下面是配置过程:github
先安装vs2008 express, 这篇文章给出了下载地址: http://stackoverflow.com/questions/15318560/visual-c-2008-express-download-link-deadexpress
若是运行出现下面的错误,则须要加入2个环境变量htm
C:\Python27\include\pyconfig.h(227) : fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory教程