# Unable to install library

**URL:** <https://discourse.nodered.org/t/unable-to-install-library/84228>\
**Category:** General\
**Created:** [3 January 2024 02:46 UTC](https://discourse.nodered.org/t/unable-to-install-library/84228 "2024-01-03T02:46:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![patofoto](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/patofoto/32/25792_2.png) [@patofoto](https://discourse.nodered.org/u/patofoto)\
**Post date:** [3 January 2024 02:46 UTC](https://discourse.nodered.org/t/unable-to-install-library/84228/1 "2024-01-03T02:46:21Z")

</div>

Assuming this is a nubie question.

Trying to install the Unicorn-hat Python library on a RPi Zero W with:

`curl -sS https://get.pimoroni.com/unicornhat | bash`

Getting this message:

```auto
This script will install everything needed to use
Unicorn HAT/pHAT

Always be careful when running scripts and commands copied
from the internet. Ensure they are from a trusted source.

This script should -- only be run on a Raspberry Pi with RPi OS --
other systems and SBCs are not supported and may explode!

If you want to see what this script does before running it,
you should run: 'curl https://get.pimoroni.com/unicornhat'

Do you wish to continue? [y/N] y

Checking environment...
Updating apt indexes...
...W: http://raspbian.raspberrypi.com/raspbian/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
.........
...
Checking hardware requirements...

Checking for packages required for GPIO control...
raspi-gpio is already installed
.....................RPi.GPIO installed and up-to-date

Unicorn HAT/pHAT comes with examples and documentation that you may wish to install.
Performing a full install will ensure those resources are installed,
along with all required dependencies. It may however take a while!

Do you wish to perform a full install? [y/N] y

Checking for dependencies...
python3-dev is already installed

Installing Unicorn HAT/pHAT library for Python 3...

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.
Python 3 library install failed!
If problems persist, visit forums.pimoroni.com for support

```

Trying to control a RGBW light strip for a project. A SK6812 RGBW LED.

Not sure what to do next. Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [3 January 2024 07:35 UTC](https://discourse.nodered.org/t/unable-to-install-library/84228/2 "2024-01-03T07:35:42Z")

</div>

Doesn't look a Node-red problem or related question.  
Please try the Unicornhat [forum](https://foampartyhats.com/en-nl/products/unicorn-hat)

---

<div class="post-metadata">

**Author:** ![patofoto](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/patofoto/32/25792_2.png) [@patofoto](https://discourse.nodered.org/u/patofoto)\
**Post date:** [3 January 2024 12:14 UTC](https://discourse.nodered.org/t/unable-to-install-library/84228/3 "2024-01-03T12:14:47Z")

</div>

Yup, are trying there too. Don't seem to get an answer there and was hoping for help here. It is not a Node Red problem, I understand. It seems to be a Raspberry Pi OS install problem. I am trying to install that library to be able to use the Neopixel node in one of my flows.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 March 2024 12:14 UTC](https://discourse.nodered.org/t/unable-to-install-library/84228/4 "2024-03-03T12:14:56Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
