C:\Users\zpc\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC

增加环境变量:

SET VCPYTHONPATH=C:\Users\zpc\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0

254行增加以下内容:

if not productdir or not os.path.isdir(productdir):
        toolskey = "VCPYTHONPATH"
        toolsdir = os.environ.get(toolskey, None)

        if toolsdir and os.path.isdir(toolsdir):
            productdir = os.path.abspath(toolsdir)
            if not os.path.isdir(productdir):
                log.debug("%s is not a valid directory" % productdir)
                return None
        else:
            log.debug("Env var %s is not set or invalid" % toolskey)

相关文章:

  • 2021-11-16
  • 2021-06-16
  • 2021-06-23
  • 2021-06-07
  • 2022-01-05
  • 2022-01-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-25
  • 2021-10-07
  • 2021-08-10
相关资源
相似解决方案