shojaei
shojaei

Reputation: 21

python 3.12 ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects

  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]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for aiohttp Failed to build aiohttp ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects

many of python libraries neeed aiohttp but in python 3.12 it's can't be installed

Upvotes: 2

Views: 3324

Answers (2)

Talha Tayyab
Talha Tayyab

Reputation: 27227

For python 3.12 you can try:

pip install aiohttp==3.9.0b0

Upvotes: 0

0x00
0x00

Reputation: 1123

Looks like aiohttp stable release doesn't support python 3.12 yet.

You can either try using the beta version pip install 'aiohttp<4' --pre --upgrade or use an older version of python such as 3.10 or 3.11.

Upvotes: 0

Related Questions