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的由来
- 下一篇: html实现3d视觉特效