我正在尝试安装 tgcrypto,但构建轮子失败
它说要获取微软构建工具,但我已经安装了。这是错误
error: subprocess-exited-with-error
× Building wheel for tgcrypto (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
creating build\lib.win-amd64-cpython-312\tests
copying tests\__init__.py -> build\lib.win-amd64-cpython-312\tests
creating build\lib.win-amd64-cpython-312\tests\cbc
copying tests\cbc\test_cbc.py -> build\lib.win-amd64-cpython-312\tests\cbc
copying tests\cbc\__init__.py -> build\lib.win-amd64-cpython-312\tests\cbc
creating build\lib.win-amd64-cpython-312\tests\ctr
copying tests\ctr\test_ctr.py -> build\lib.win-amd64-cpython-312\tests\ctr
copying tests\ctr\__init__.py -> build\lib.win-amd64-cpython-312\tests\ctr
creating build\lib.win-amd64-cpython-312\tests\ige
copying tests\ige\test_ige.py -> build\lib.win-amd64-cpython-312\tests\ige
copying tests\ige\__init__.py -> build\lib.win-amd64-cpython-312\tests\ige
running build_ext
building 'tgcrypto' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for tgcrypto
Failed to build tgcrypto
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (tgcrypto)
您遇到此错误是因为您使用的是不受支持的 python 版本。 TgCrypto 目前支持 Python 3.7 - 3.11,但您正在使用 Python 3.12。 使用受支持的 Python 版本来修复此错误。