Ich habe auf meinem RPi4 mit Debian 10 die Infrared Remote Lib LIRC nach der Anleitung auf https://www.instructables.com/Easy-Setu ... or-the-Ra/ erfolgreich installiert. Das funktioniert auch mit Standard Python3. In meiner virtuellen Umgebung kann ich die Lib jedoch nicht importieren, daher habe ich versucht, die Lib in meine virtuelle Umgebung folgendermassen zu installieren:
Code: Alles auswählen
pip install /usr/share/lirc/lirc-0.10.1.tar.gz
Code: Alles auswählen
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing /usr/share/lirc/lirc-0.10.1.tar.gz
Complete output from command python setup.py egg_info:
Package lirc was not found in the pkg-config search path.
Perhaps you should add the directory containing `lirc.pc'
to the PKG_CONFIG_PATH environment variable
No package 'lirc' found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-l7_4vgcc/setup.py", line 22, in <module>
cflags = subprocess.check_output(["pkg-config", "--cflags", 'lirc'])
File "/usr/lib/python3.7/subprocess.py", line 395, in check_output
**kwargs).stdout
File "/usr/lib/python3.7/subprocess.py", line 487, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['pkg-config', '--cflags', 'lirc']' returned non-zero exit status 1.
Brauche ich die .pc Datei um das Modul in meiner viruellen Umgebung zu benutzen?