Python pytype 安装:为 pytype 构建轮子失败,无法为使用 PEP 517 的 pytype 构建轮子
Python pytype installation: Failed building wheel for pytype, Could not build wheels for pytype which use PEP 517
我正在尝试在 Windows 10 上安装 Python 静态类型检查器 Pytype,但收到此错误
pytype/typegraph/cfg.cc(1450): error C2143: syntax error: missing ';' before '}'
pytype/typegraph/cfg.cc(1450): error C2059: syntax error: '}'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Failed building wheel for pytype
Failed to build pytype
ERROR: Could not build wheels for pytype which use PEP 517 and cannot be installed directly
我安装了 C++ 构建对象、wheel 并尝试了以下 --no-binary
,但没有成功。
pip install wheel
py -m pip install pytype --no-binary :all
知道如何解决这个问题并安装 pytype 吗?
Windows 平台目前不受 pytype 支持,如 pytype GitHub page under Requirements section. The only alternative is to use WSL.
中所述
我正在尝试在 Windows 10 上安装 Python 静态类型检查器 Pytype,但收到此错误
pytype/typegraph/cfg.cc(1450): error C2143: syntax error: missing ';' before '}'
pytype/typegraph/cfg.cc(1450): error C2059: syntax error: '}'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Failed building wheel for pytype
Failed to build pytype
ERROR: Could not build wheels for pytype which use PEP 517 and cannot be installed directly
我安装了 C++ 构建对象、wheel 并尝试了以下 --no-binary
,但没有成功。
pip install wheel
py -m pip install pytype --no-binary :all
知道如何解决这个问题并安装 pytype 吗?
Windows 平台目前不受 pytype 支持,如 pytype GitHub page under Requirements section. The only alternative is to use WSL.
中所述