美文网首页
解决 Cython 出现 Unable to find vcva

解决 Cython 出现 Unable to find vcva

作者: Spooking | 来源:发表于2020-07-09 15:09 被阅读0次

这个错误是 python 查找编译器的普遍错误,网上有很多解决办法,我之所以要再写是因为我用的是visual studio 2017便携精简版。

过程就不说了,直接上:
修改 python安装目录下 \Lib\distutils_msvccompiler.py

def _find_vcvarsall(plat_spec):
    _, best_dir = _find_vc2017()
    best_dir = "E:\\Soft\\Visual Studio 2017 Enterprise\\VC\\Auxiliary\\Build" #手动添加

替换自己的vs目录即可。

相关文章

网友评论

      本文标题:解决 Cython 出现 Unable to find vcva

      本文链接:https://www.haomeiwen.com/subject/oiqscktx.html