[Python] Could not build wheels for cchardet, which is required to install...

Discussão em 'Python' iniciado por Stack, Setembro 29, 2024.

  1. Stack

    Stack Membro Participativo

    I would like to install twint, but I keep making the following errors:

    "error: subprocess-exited-with-error

    × python setup.py bdist_wheel did not run successfully.
    │ exit code: 1
    ╰─> [23 lines of output]
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-aarch64-cpython-312
    creating build/lib.linux-aarch64-cpython-312/cchardet
    copying src/cchardet/__init__.py -> build/lib.linux-aarch64-cpython-312/cchardet
    copying src/cchardet/version.py -> build/lib.linux-aarch64-cpython-312/cchardet
    running build_ext
    building 'cchardet._cchardet' extension
    creating build/temp.linux-aarch64-cpython-312
    creating build/temp.linux-aarch64-cpython-312/src
    creating build/temp.linux-aarch64-cpython-312/src/cchardet
    creating build/temp.linux-aarch64-cpython-312/src/ext
    creating build/temp.linux-aarch64-cpython-312/src/ext/uchardet
    creating build/temp.linux-aarch64-cpython-312/src/ext/uchardet/src
    creating build/temp.linux-aarch64-cpython-312/src/ext/uchardet/src/LangModels
    aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -Isrc/ext/uchardet/src -I/usr/include/python3.12 -c src/cchardet/_cchardet.cpp -o build/temp.linux-aarch64-cpython-312/src/cchardet/_cchardet.o
    src/cchardet/_cchardet.cpp:196:12: fatal error: longintrepr.h: No such file or directory
    196 | #include "longintrepr.h"
    | ^~~~~~~~~~~~~~~
    compilation terminated.
    error: command '/usr/bin/aarch64-linux-gnu-gcc' 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 cchardet
    Running setup.py clean for cchardet
    Failed to build cchardet
    ERROR: Could not build wheels for cchardet, which is required to install pyproject.toml-based projects"

    Continue reading...

Compartilhe esta Página