Installation der seeed grove.py Bibliothek

  • Hi,

    die Installation der zuvor genannten Bibliothek habe ich mit curl -sL https://github.com/Seeed-Studio/g…ster/install.sh | sudo bash -s – versucht.

    (gemäß https://www.rahner-edu.de/raspberry-pi/r…grove-base-hat/)


    Dabei erhalte ich immer den (alt bekannten) Fehler:


    deb https://seeed-studio.github.io/pi_repo/ stretch main
    error: externally-managed-environment

    × This environment is externally managed
    ╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
       
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
       
    For more information visit http://rptl.io/venv

    note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
    hint: See PEP 668 for the detailed specification.
    error: externally-managed-environment

    × This environment is externally managed
    ╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
       
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
       
    For more information visit http://rptl.io/venv

    note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
    hint: See PEP 668 for the detailed specification.
    error: externally-managed-environment

    × This environment is externally managed
    ╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
       
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
       
    For more information visit http://rptl.io/venv

    note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
    hint: See PEP 668 for the detailed specification.
    -------------------------------------------------------
    Grove.py installation FAILED, FAILED, FAILED
    -------------------------------------------------------
    pi@Raspberrypi:~ $ apt install python3-grove
    Error: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
    Error: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
    pi@Raspberrypi:~ $ rood apt install python3 grove
    bash: rood: command not found
    pi@Raspberrypi:~ $ sudo apt install python3-grove
    Error: Unable to locate package python3-grove
    pi@Raspberrypi:~ $ curl -sL https://github.com/Seeed-Studio/g…ster/install.sh | sudo bash -s –
    error: externally-managed-environment

    × This environment is externally managed
    ╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
       
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
       
    For more information visit http://rptl.io/venv

    note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
    hint: See PEP 668 for the detailed specification.
    error: externally-managed-environment

    × This environment is externally managed
    ╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
       
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
       
    For more information visit http://rptl.io/venv

    note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
    hint: See PEP 668 for the detailed specification.
    error: externally-managed-environment

    × This environment is externally managed
    ╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
       
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
       
    For more information visit http://rptl.io/venv

    note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
    hint: See PEP 668 for the detailed specification.
    -------------------------------------------------------
    Grove.py installation FAILED, FAILED, FAILED


    Das sagt mir leider gar nichts, ich weiß nicht, was ich machen könnte! Könnt ihr mir bitte weiterhelfen?

    L Bader

  • Ja, das ist Dein "alt bekannter Fehler" wie z.B. in Temperaurmessung mit DHT - Python - Deutsches Raspberry Pi Forum. Du brauchst ein VEnv!
    S. GitHub - Seeed-Studio/grove.py: Python library for Seeedstudio Grove devices :

    Code
    Online install
    To install into a virtual environment, first active your virtualenv and type the following command:
    curl -sL https://github.com/Seeed-Studio/grove.py/raw/master/install.sh | bash -s -- --user-local --bypass-gui-installation

    Du wirst Dich mit Python Virtual Environments beschäftigen müssen. Da geht kein Weg dran vorbei. Ignorieren funktioniert nicht.


    Nachtrag:
    Du hast da wieder die uralt-Sachen ausgegraben.
    Vgl.: GitHub - Seeed-Studio/grove.py: Python library for Seeedstudio Grove devices - dependencies:

    Code
    # Add repository
    echo "deb https://seeed-studio.github.io/pi_repo/ stretch main" | sudo tee /etc/apt/sources.list.d/seeed.list

    "stretch" ist Debian 9, EOL 2020.
    Du bist bei "trixie", Debian 13!

    Edited 2 times, last by pisel (February 4, 2026 at 1:35 PM).

  • Das sagt mir leider gar nichts, ich weiß nicht, was ich machen könnte! Könnt ihr mir bitte weiterhelfen?

    Die gleiche Frage venv Frage hattest du gestern, du hast Links mit Erklärungen und Lösungen bekommen. Treffen hier auch zu. Wenn du fragst, Antworten aber ignorierst und die gleiche Frage nochmal am nächsten Tag stellst, bekommst du halt irgendwann keine Antworten mehr, weil's ja nix bringt.

    Und nochmal: stumpfes Copy&Paste bringt's nicht, dass scheitert immer, früher oder später. Du solltest _dringend_ Zeit investieren, und dir die Grundlagen aneignen. Lohnt sich hinten raus immer.

    Gruß, noisefloor

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!