码迷,mamicode.com
首页 > 编程语言 > 详细

python---解决“Unable to find vcvarsall.bat”错误

时间:2015-04-10 15:08:52      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:

  1. 首先安装MinGW,在MinGW的安装目录下找到bin的文件夹,找到mingw32-make.exe,复制一份更名为make.exe
  2. MinGW的路径添加到环境变量path中,比如我把MinGW安装到D:\MinGW\中,就把D:\MinGW\bin添加到path中;
  3. 打开命令行窗口,在命令行窗口中进入到要安装代码的目录下;
  4. 输入如下命令就可以安装了。
  5. setup.py install build --compiler=mingw32

 

 

如果安装了VS2010或是VS2012可以使用下面的方法解决:
If you have Visual Studio 2010 installed, execute >
SET VS90COMNTOOLS=%VS100COMNTOOLS% 
or with Visual Studio 2012 installed >
SET VS90COMNTOOLS=%VS110COMNTOOLS% 
python 2.7在setup的时候查找的是VS2008编译的。

python---解决“Unable to find vcvarsall.bat”错误

标签:

原文地址:http://www.cnblogs.com/check-lg/p/4414523.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!