python---解决“Unable to find vcvarsall.bat”错误
2014-01-05 08:06
507 查看
Python 2.7 会搜索 Visual Studio 2008.
如果你电脑上没有这个版本的话,比如只有:
1.Visual Studio 2010,在cmd里面执行:
SET VS90COMNTOOLS=%VS100COMNTOOLS%
2. Visual Studio 2012 的话:
SET VS90COMNTOOLS=%VS110COMNTOOLS%
然后就可以正常了
如果安装了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编译的。
For Windows installations: While running setup.py for for package installations Python 2.7 searches for an installed Visual Studio 2008. You can trick Python to use newer Visual Studio by setting correct path in VS90COMNTOOLS environment variable before calling setup.py.
如果你电脑上没有这个版本的话,比如只有:
1.Visual Studio 2010,在cmd里面执行:
SET VS90COMNTOOLS=%VS100COMNTOOLS%
2. Visual Studio 2012 的话:
SET VS90COMNTOOLS=%VS110COMNTOOLS%
然后就可以正常了
如果安装了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编译的。
For Windows installations: While running setup.py for for package installations Python 2.7 searches for an installed Visual Studio 2008. You can trick Python to use newer Visual Studio by setting correct path in VS90COMNTOOLS environment variable before calling setup.py.
相关文章推荐
- python ---解决“Unable to find vcvarsall.bat”错误
- python安装PIL模块时Unable to find vcvarsall.bat错误的解决方法
- python---解决“Unable to find vcvarsall.bat”错误,在windows 64位上安装
- [Python3.5]解决安装一些模块时出现“error: 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---解决“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”错误
- Python3.4 安装mysqlClient提示 Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).错误的解决
- python---解决“Unable to find vcvarsall.bat”错误
- python安装PIL模块时Unable to find vcvarsall.bat错误的解决方法