Insalltion des Modules Pyo

Probleme bei der Installation?
Antworten
CreCoProject
User
Beiträge: 1
Registriert: Mittwoch 12. Februar 2025, 14:47

Liebe Community,
Ich versuche gerade das Modul Pyo . zur Audio Programmierung zu installieren.
Ich habe schon folgendes Versucht:

Code: Alles auswählen

pip install pyo
Das bricht bei mir aber immer mit:

Code: Alles auswählen

 creating build/temp.linux-x86_64-cpython-312/src/objects
      gcc -pthread -B /home/crecoproject/anaconda3/compiler_compat -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/crecoproject/anaconda3/include -fPIC -O2 -isystem /home/crecoproject/anaconda3/include -fPIC -DUSE_PORTAUDIO -DUSE_PORTMIDI -DUSE_OSC -Iinclude -I/usr/include -I/usr/local/include -I/home/crecoproject/anaconda3/include/python3.12 -c src/engine/ad_portaudio.c -o build/temp.linux-x86_64-cpython-312/src/engine/ad_portaudio.o -Wno-strict-prototypes -Wno-strict-aliasing -O3 -g0 -DNDEBUG
      In file included from src/engine/ad_portaudio.c:21:
      include/ad_portaudio.h:25:10: fatal error: portaudio.h: Datei oder Verzeichnis nicht gefunden
         25 | #include "portaudio.h"
            |          ^~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/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 pyo
  Running setup.py clean for pyo
Failed to build pyo
ab.

Wie kann ich trotzdem Pyo installieren.

Mit Hoffnung auf Hilfe:

CeCoProject
Benutzeravatar
__blackjack__
User
Beiträge: 13919
Registriert: Samstag 2. Juni 2018, 10:21
Wohnort: 127.0.0.1
Kontaktdaten:

@CreCoProject: Entweder alle Abhängigkeiten installieren die zum kompilieren benötigt werden, also mindestens mal die Entwicklerdateien für portaudio, oder eine Python-Version verwenden für die es `pyo` als Wheel gibt. Python 3.10 scheint in Kombination mit Linux die letzte Version zu sein für die es ein Wheel gibt.

Wobei das anaconda3 in dem Pfad: conda und pip zu mischen, soll angeblich nicht so eine gute Idee sein. Warum überhaupt Anaconda unter Linux?
“I am Dyslexic of Borg, Your Ass will be Laminated” — unknown
Antworten