首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >错误:无法为aiohttp构建轮子,这是安装基于pyproject.toml的项目所必需的

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

Stack Overflow用户
提问于 2022-11-23 17:27:24
回答 1查看 674关注 0票数 0

Python版本: 3.11

通过pip install -r requirements.txt安装应用程序的依赖项会导致以下错误:

代码语言:javascript
运行
复制
socket.c -o build/temp.linux-armv8l-cpython-311/aiohttp/_websocket.o
aiohttp/_websocket.c:198:12: fatal error: 'longintrepr.h' file not found
#include "longintrepr.h"                                   
          ^~~~~~~                        1 error generated.
error: command '/data/data/com.termux/files/usr/bin/arm-linux-androideabi-clang' 
failed with exit code 1
[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

此错误是特定于Python版本的。在上,3.10.6版本的安装很好。

相关问题:yarl/_quoting.c:196:12: fatal error: 'longintrepr.h' file not found - 1 error generated

EN

回答 1

Stack Overflow用户

发布于 2022-11-23 17:27:24

此错误的解决方案:需要更新requirements.txt

不使用Python 3.11的模块版本

代码语言:javascript
运行
复制
aiohttp==3.8.1
yarl==1.4.2
frozenlist==1.3.0

工作版本:

代码语言:javascript
运行
复制
aiohttp==3.8.2
yarl==1.8.1
frozenlist==1.3.1

链接到相应的修复问题:

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74550830

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档