WxPython

From ElectroDragon Wiki
Revision as of 02:12, 13 May 2021 by Chao (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • VC 问题修复

安装这个就行。然后如果还是报错,请找到上面软件的安装位置,找到其中的vcvarsall.bat文件,默认位置在:

C:\Users\UserName\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\vcvarsall.bat 根据自己电脑的情况找到该目录,然后在“python安装路径...\Lib\distutils目录下有个msvc9compiler.py,找到msvc9compiler.py打开,在这个文件的219行定义了一个find_vcvarsall(version)函数,直接在函数里第一行加入如下内容:

vcvarsall = r"C:\Program Files (x86)\Microsoft Visual Studio\.....\vcvarsall.bat" return vcvarsall

vcvarsall的值是你的vcvarsall.bat文件的具体路径,亲测有效