Behebung von ModuleNotFoundError: No module named 'picamera'

English Deutsch

Problem:

Du möchtest ein Python-Skript mit der Raspberry Pi-Kamera ausführen, siehst aber eine Fehlermeldung wie

picamera_traceback.txt
Traceback (most recent call last):
    File "mycamera.py", line 2, in <module>
        import picamera
ModuleNotFoundError: No module named 'picamera'

Lösung

Du musst das picamera-Python-Modul mit pip installieren:

pip_install_picamera.sh
pip install -U picamera

Falls du siehst

sudo_pip_not_found.txt
sudo: pip: command not found

installiere pip mit

install_python3_pip.sh
sudo apt install -y python3-pip

Check out similar posts by category: Python, Raspberry Pi