anaconda环境编译lib报错 Microsoft Visual C++ 14.0 or greater is required的解决办法

anaconda环境编译lib报错 Microsoft Visual C++ 14.0 or greater is required的解决办法

直接一条语句:

conda install libpython
Collecting gpiod Using cached gpiod-2.3.0.tar.gz (57 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: gpiod Building wheel for gpiod (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for gpiod (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [61 lines of output] C:\Users\11867\AppData\Local\Temp\pip-build-env-d8os6egt\overlay\Lib\site-packages\setuptools\config\_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated !! ******************************************************************************** Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0). By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! corresp(dist, value, root_dir) C:\Users\11867\AppData\Local\Temp\pip-build-env-d8os6egt\overlay\Lib\site-packages\setuptools\config\_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! dist._finalize_license_expression() C:\Users\11867\AppData\Local\Temp\pip-build-env-d8os6egt\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running bdist_wheel running build running build_py creating build\lib.win-amd64-cpython-39\gpiod copying gpiod\chip.py -> build\lib.win-amd64-cpython-39\gpiod copying gpiod\chip_info.py -> build\lib.win-amd64-cpython-39\gpiod copying gpiod\edge_event.py -> build\lib.win-amd64-cpython-39\gpiod copying gpiod\exception.py -> build\lib.win-amd64-cpython-39\gpiod copying gpiod\info_event.py -> build\lib.win-amd64-cpython-39\gpiod copying gpiod\line.py -> build\lib.win-amd64-cpython-39\gpiod copying gpiod\line_info.py -> build\lib.win-amd64-cpython-39\gpiod copying gpiod\line_request.py -> build\lib.win-amd64-cpython-39\gpiod copying gpiod\line_settings.py -> build\lib.win-amd64-cpython-39\gpiod copying gpiod\version.py -> build\lib.win-amd64-cpython-39\gpiod copying gpiod\_internal.py -> build\lib.win-amd64-cpython-39\gpiod copying gpiod\__init__.py -> build\lib.win-amd64-cpython-39\gpiod copying gpiod\_ext.pyi -> build\lib.win-amd64-cpython-39\gpiod copying gpiod\py.typed -> build\lib.win-amd64-cpython-39\gpiod running build_ext building 'gpiod._ext' 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 gpiod Failed to build gpiod ERROR: Could not build wheels for gpiod, which is required to install pyproject.toml-based projects WARNING: You are using pip version 22.0.4; however, version 25.1.1 is available. You should consider upgrading via the 'C:\Users\11867\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip' command.
最新发布
05-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

夏融化了这季节

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值