首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >C:196:12:致命错误:“found intrepr.h”文件未找到-生成1个错误

C:196:12:致命错误:“found intrepr.h”文件未找到-生成1个错误
EN

Stack Overflow用户
提问于 2022-11-23 21:51:23
回答 1查看 65关注 0票数 0

Python版本: 3.11

通过pip install -r requirements.txt安装应用程序的依赖项会出现以下错误。此错误是特定于Python版本的。在上,3.10.6版本的安装很好。

相关问题:ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects

代码语言:javascript
运行
复制
Running setup.py install for yarl ... error
error: subprocess-exited-with-error
× Running setup.py install for yarl did not run successfully.\ │ exit code: 1
╰─> [45 lines of output]
    ****                      * Accellerated build *                      ****
    /data/data/com.termux/files/home/folder_for_app/venv/lib/python3.11/site-packages/setuptools/config/setupcfg.py:508:
    SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
      warnings.warn(msg, warning_class)         running install
      /data/data/com.termux/files/home/folder_for_app/venv/lib/python3.11/site-packages/setuptools/command/install.py:34:
  SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(                            running build
  running build_py
  creating build
  creating build/lib.linux-armv8l-cpython-311
  creating build/lib.linux-armv8l-cpython-311/yarl
  copying yarl/init.py -> build/lib.linux-armv8l-cpython-311/yarl
  copying yarl/quoting.py -> build/lib.linux-armv8l-cpython-311/yarl 
  running egg_info
    writing yarl.egg-info/PKG-INFO
    writing dependency_links to yarl.egg-info/dependency_links.txt
    writing requirements to yarl.egg-info/requires.txt
    writing top-level names to yarl.egg-info/top_level.txt
    reading manifest file 'yarl.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files matching '*.cache' found anywhere in distribution
    warning: no previously-included files found matching 'yarl/_quoting.html'
    warning: no previously-included files found matching 'yarl/_quoting.*.so'
    warning: no previously-included files found matching 'yarl/_quoting.pyd'
    warning: no previously-included files found matching 'yarl/_quoting.*.pyd'
    no previously-included directories found matching 'docs/_build'
    adding license file 'LICENSE'               writing manifest file 'yarl.egg-info/SOURCES.txt'
    copying yarl/init.pyi -> build/lib.linux-armv8l-cpython-311/yarl
    copying yarl/_quoting.c -> build/lib.linux-armv8l-cpython-311/yarl
    copying yarl/_quoting.pyx -> build/lib.linux-armv8l-cpython-311/yarl
    copying yarl/py.typed -> build/lib.linux-armv8l-cpython-311/yarl
    running build_ext                           building 'yarl._quoting' extension
    creating build/temp.linux-armv8l-cpython-311      creating build/temp.linux-armv8l-cpython-311/yarl
    arm-linux-androideabi-clang -mfloat-abi=softfp -mfpu=vfpv3-d16 -DNDEBUG -g -fwrapv -O3 -Wall 
    -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -fstack-protector-strong -O3 -march=armv7-a 
    -mfpu=neon -mfloat-abi=softfp -mthumb -fstack-protector-strong -O3
    -fPIC -I/data/data/com.termux/files/home/folder_for_app/venv/include
    -I/data/data/com.termux/files/usr/include/python3.11
    -c yarl/_quoting.c -o build/temp.linux-armv8l-cpython-311/yarl/_quoting.o
    yarl/_quoting.c:196: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: legacy-install-failure
× Encountered error while trying to install package.
╰─> yarl                                    
note: This is an issue with the package mentioned above, not pip.
EN

回答 1

Stack Overflow用户

发布于 2022-11-23 21:51:23

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

不使用Python 3.11的模块版本

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

工作版本:

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

链接到相应的修复问题:

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

https://stackoverflow.com/questions/74553366

复制
相关文章

相似问题

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