Python版本: 3.11
通过pip install -r requirements.txt
安装应用程序的依赖项会导致以下错误:
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
发布于 2022-11-23 17:27:24
此错误的解决方案:需要更新requirements.txt
。
不使用Python 3.11
的模块版本
aiohttp==3.8.1
yarl==1.4.2
frozenlist==1.3.0
工作版本:
aiohttp==3.8.2
yarl==1.8.1
frozenlist==1.3.1
链接到相应的修复问题:
https://stackoverflow.com/questions/74550830
复制相似问题