Python error: Unable to find vcvarsall.bat
生活随笔
收集整理的这篇文章主要介绍了
Python error: Unable to find vcvarsall.bat
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
请参考阅读博文《Python error: Unable to find vcvarsall.bat》
我用的该文章中的方案二解决的:
前提:win7系统 Python2.7
①下载安装VS2010 http://pan.baidu.com/s/1skZLtId 或 http://www.xpgod.com/soft/6637.html
②通过修改Python的源代码进行修改:打开“<python安装目录>\Lib\distutils\msvc9compiler.py”,找到 toolskey = “VS%0.f0COMNTOOLS” % version,直接修改为 toolskey = “VS100COMNTOOLS”
转载于:https://www.cnblogs.com/yiyezhouming/p/7125562.html
总结
以上是生活随笔为你收集整理的Python error: Unable to find vcvarsall.bat的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: Python的由来
- 下一篇: python 中 for使用小技巧