Python---解决“Unable to find vcvarsall.bat”错误
2014-05-06 15:33
519 查看
第一种方法:
1.首先安装MinGW,在MinGW的安装目录下找到bin的文件夹,找到mingw32-make.exe,复制一份更名为make.exe;
2.把MinGW的路径添加到环境变量path中,比如我把MinGW安装到D:\MinGW\中,就把D:\MinGW\bin添加到path中;
3.打开命令行窗口,在命令行窗口中进入到要安装代码的目录下;
4.输入如下命令:
就可以安装了。
第二种方法:
装个vs c++ 2008即可,Python 2.7 会搜索 Visual Studio 2008.
1.如果电脑上没有这个版本,比如只有Visual Studio 2010,在cmd里面执行:
注:本文转自/article/3553217.html
1.首先安装MinGW,在MinGW的安装目录下找到bin的文件夹,找到mingw32-make.exe,复制一份更名为make.exe;
2.把MinGW的路径添加到环境变量path中,比如我把MinGW安装到D:\MinGW\中,就把D:\MinGW\bin添加到path中;
3.打开命令行窗口,在命令行窗口中进入到要安装代码的目录下;
4.输入如下命令:
setup.py install build --compiler=mingw32
就可以安装了。
第二种方法:
装个vs c++ 2008即可,Python 2.7 会搜索 Visual Studio 2008.
1.如果电脑上没有这个版本,比如只有Visual Studio 2010,在cmd里面执行:
SET VS90COMNTOOLS=%VS100COMNTOOLS%2.Visual Studio 2013 的话:
SET VS90COMNTOOLS=%VS120COMNTOOLS%然后就可以正常了。
注:本文转自/article/3553217.html
相关文章推荐
- [Python3.5]解决安装一些模块时出现“error: Unable to find vcvarsall.bat”的错误
- python---解决“Unable to find vcvarsall.bat”错误
- python---解决“Unable to find vcvarsall.bat”错误,在windows 64位上安装
- python错误解决:Unable to find vcvarsall.bat
- python 解决“Unable to find vcvarsall.bat”错误
- python---解决“Unable to find vcvarsall.bat”错误
- python安装第三方库,报“error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).”错误,解决办法
- python—解决“Unable to find vcvarsall.bat”错误
- 解决 Python安装包的时候遇到 “Unable to find vcvarsall.bat”错误的问题
- 【python系列】“Unable to find vcvarsall.bat”错误的解决
- python—解决“Unable to find vcvarsall.bat”错误
- Python 使用mingw构建第三方库 Unable to find vcvarsall.bat错误解决方法
- 解决python3 安装twisted错误,报Unable to find vcvarsall.bat
- python---解决“Unable to find vcvarsall.bat”错误
- python---解决“Unable to find vcvarsall.bat”错误
- Python3.4 安装mysqlClient提示 Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).错误的解决
- python安装PIL模块时Unable to find vcvarsall.bat错误的解决方法
- python---解决“Unable to find vcvarsall.bat”错误
- python—解决“Unable to find vcvarsall.bat”错误
- 解决python的库安装是产生的“Unable to find vcvarsall.bat”错误