python 3.12 错误:无法为 aiohttp 构建轮子,这是安装基于 pyproject.toml 的项目所必需的

问题描述 投票:0回答:1
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  [end of output]

注意:此错误源自子进程,并且可能不是 pip 的问题。 错误:aiohttp 构建轮子失败 构建 aiohttp 失败 错误:无法为 aiohttp 构建轮子,这是安装基于 pyproject.toml 的项目所必需的

许多 python 库需要 aiohttp 但在 python 3.12 中无法安装

aiohttp
1个回答
0
投票

看起来 aiohttp 稳定版本还不支持 python 3.12

您可以尝试使用 beta 版本

pip install 'aiohttp<4' --pre --upgrade
或使用旧版本的 python,例如 3.10 或 3.11。

© www.soinside.com 2019 - 2024. All rights reserved.