[entwicklungsumgebung] 'pip install -r requirements.txt' schlägt fehl
Verfasst: Do Okt 09, 2025 9:18 am
Da das Programmiern im Github-Webeditor doch recht mühselig ist versuche ich gerade, eine lokale Entwicklungsumgebung aufzusetzten.
Ich habe ein virtuelles Environment angelegt und versuche mit diesem gerade 'pip install -r requirements.txt' auszuführen. Dabei erhalte ich folgenden Fehler:
Die Lösungsvorschläge von ChatGPT habe ich erfolglos abgearbeitet.
Hat womöglich jemand einen funktionierenden Vorschlag?
PS: natürlich ist jq bereits installiert...
bye
TW
Ich habe ein virtuelles Environment angelegt und versuche mit diesem gerade 'pip install -r requirements.txt' auszuführen. Dabei erhalte ich folgenden Fehler:
Code: Alles auswählen
$ python3 --version
Python 3.12.3
$pip install -r requirements.txt
Collecting setuptools<81 (from -r requirements.txt (line 1))
Using cached setuptools-80.9.0-py3-none-any.whl.metadata (6.6 kB)
## mehr "Collecting..."
Using cached sniffio-1.3.1-py3-none-any.whl (10 kB)
Building wheels for collected packages: jq
Building wheel for jq (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for jq (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [1290 lines of output]
/tmp/pip-build-env-k5my46qc/overlay/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
## millionen Warnungen ...
Executing: ./configure CFLAGS=-fPIC -pthread --disable-maintainer-mode --with-oniguruma=/tmp/pip-install-e9m5irik/jq_c4c7cb82c35d4042bff9b84e39768180/_deps/onig-install-6.9.4
Executing: make
building 'jq' extension
creating build/temp.linux-x86_64-cpython-312
x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I/tmp/pip-install-e9m5irik/jq_c4c7cb82c35d4042bff9b84e39768180/_deps/jq-1.6/src -I/home/thomas/Dokumente/Haus/E-Auto/OWB/update/version-2.0/.venv/include -I/usr/include/python3.12 -c jq.c -o build/temp.linux-x86_64-cpython-312/jq.o
jq.c:196:12: fatal error: longintrepr.h: Datei oder Verzeichnis nicht gefunden
196 | #include "longintrepr.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-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 jq
Failed to build jq
ERROR: Could not build wheels for jq, which is required to install pyproject.toml-based projects
Hat womöglich jemand einen funktionierenden Vorschlag?
PS: natürlich ist jq bereits installiert...
Code: Alles auswählen
$ jq --version
jq-1.7
TW