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

Raspberry Pi5 dependencies #29

Open
jaburnham opened this issue Nov 28, 2024 · 2 comments
Open

Raspberry Pi5 dependencies #29

jaburnham opened this issue Nov 28, 2024 · 2 comments

Comments

@jaburnham
Copy link

trying to run zellostream on a pi5. a pi5 requires the Bookworm OS. thus far, I have been unable to install the libopus and librisa dependencies. Both say unable to locate the packages. websocket-client was also not found but just plain websocket installed.

am I missing something?

@jaburnham
Copy link
Author

pi@pi5-op25:~ $ pip3 install opuslib
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.

hint: See PEP 668 for the detailed specification.

pi@pi5-op25:~ $
pi@pi5-op25:~ $ sudo apt install python3-opuslib
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python3-opuslib
pi@pi5-op25:~ $

@aaknitt
Copy link
Owner

aaknitt commented Nov 30, 2024

Newer OS's / Python versions are really trying to push using virtual environments instead of installing Python dependencies system-wide. So you can go the virtual environment route, or just use the --break-system-packages flag to do it the old-fashioned way and install it system-wide:
pip3 install opuslib --break-system-packages

https://stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-every-time-i-use-pip-3

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