Python in Windows -- build--''error: Unable to find vcvarsall.bat''
2017-04-03 10:57
721 查看
1) Install Microsoft Visual C++ Compiler for Python 2.7
link is https://www.microsoft.com/en-gb/download/details.aspx?id=44266
No need to install any other Visual Studio package
2) Visual C++ compiler would get installed at
C:\Users\\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0
3) Change 9.0 to VC
So you would have the following path now -
C:\Users\\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\VC\VC (strange ! but to make it work you have to do it)
4) Add environment variable VS90COMNTOOLS and its value as
C:\Users\\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\VC\VC
This is required(otherwise we’ll get error Unable to find vcvarsall.bat)
compileModule.py uses distutils for compilation and distutils.msvc9compiler file requires the directory structure to be such.
5) In file compileModule.py remove libraries=[‘m’] parameter from Extension (at last line) as explained in one of the posts above as well
Run python compileModule.py build_ext –inplace
link is https://www.microsoft.com/en-gb/download/details.aspx?id=44266
No need to install any other Visual Studio package
2) Visual C++ compiler would get installed at
C:\Users\\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0
3) Change 9.0 to VC
So you would have the following path now -
C:\Users\\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\VC\VC (strange ! but to make it work you have to do it)
4) Add environment variable VS90COMNTOOLS and its value as
C:\Users\\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\VC\VC
This is required(otherwise we’ll get error Unable to find vcvarsall.bat)
compileModule.py uses distutils for compilation and distutils.msvc9compiler file requires the directory structure to be such.
5) In file compileModule.py remove libraries=[‘m’] parameter from Extension (at last line) as explained in one of the posts above as well
Run python compileModule.py build_ext –inplace
相关文章推荐
- 关于python setup build编译出现找不到 vcvarsall.bat(error: Unable to find vcvarsall.bat)
- python安装error: Unable to find vcvarsall.bat
- Python error: Unable to find vcvarsall.bat
- python安装error: Unable to find vcvarsall.bat
- python 3.4 error: Microsoft Visual C++ 10.0 is required(Unable to find vcvarsall.bat)
- python2.7 error: Unable to find vcvarsall.bat
- Python error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
- 安装python模块时,遇到error: Unable to find vcvarsall.bat
- error: Unable to find vcvarsall.bat while install python library by pip install or python setup.py install.
- [Python3.5]解决安装一些模块时出现“error: Unable to find vcvarsall.bat”的错误
- windows下Python扩展问题error: Unable to find vcvarsall.bat
- Windows上面安装MySQL-Python-1.2.3(Mysqldb- error: Unable to find vcvarsall.bat)
- python setup.py安装出错: error: Unable to find vcvarsall.bat
- python安装某些第三方库时error: Unable to find vcvarsall.bat
- python 3.4 在windows64下安装模块error: Microsoft Visual C++ 10.0 is required(Unable to find vcvarsall.bat)
- Python error: Unable to find vcvarsall.bat
- python 安装包error: Unable to find vcvarsall.bat
- python27(32位)安装模块报错“error: Unable to find vcvarsall.bat”
- win7Python3.5安装Scrapy出现error: Unable to find vcvarsall.bat
- Visual Studio 2010编译Python扩展程序报error: Unable to find vcvarsall.bat