Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 install error on fresh install | error: externally-managed-environment #104

Open
Get-Kraken opened this issue May 9, 2024 · 1 comment

Comments

@Get-Kraken
Copy link

Using Raspberry Pi Zero W.
Fresh SD card flash with 32 bit OS using Raspberry Pi Imager.
updated and restarted.

Start install process as per instructions on github:

admin@blinkt:~/Pimoroni $ curl https://get.pimoroni.com/blinkt | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
This script will install everything needed to use
Blinkt!
100 35031 100 35031 0 0 20799 0 0:00:01 0:00:01 --:--:-- 20939

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/blinkt'

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

Blinkt! 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...

Installing python3-blinkt...
install ok installed

Installing Blinkt! 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
admin@blinkt:~/Pimoroni $

@Gadgetoid
Copy link
Member

See my half-baked ramble on this very topic here: https://pimoroni.github.io/venv-python/

Or just skip to trying the still-in-progress-fixed-version here: #102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants