When I run the setup script (curl -G https://s3.amazonaws.com/zk-sw-repo/install_zk_sw.sh | sudo bash
) I get the following errors at the python/pip install stages:
no such option: --break-system-packages
See below for full log. I’ve got Python 3.10.2, pip 25.1.1 running on ubuntu running on a Raspberry Pi 4:
lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.5 LTS Release: 22.04 Codename: jammy
I can’t see why this is happening. The flag seems to be supported in the pip I have installed:
pip install --help | grep break-system-packages --break-system-packages Allow pip to modify an EXTERNALLY-MANAGED Python
Any help would be appreciated.
Also, I’m a bit concerned about the use of this command. We’re using Python - I don’t want it to screw anything up on our application.
Full log:
`Hit:1 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy InRelease.
Get:2 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-updates InRelease [128 kB]
Hit:3 [URL_REDACTED_DUE_TO_FORUM_RULES]/mozillateam/ppa/ubuntu jammy InRelease
Get:4 [URL_REDACTED_DUE_TO_FORUM_RULES]/stable/ubuntu jammy InRelease
Get:5 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-backports InRelease [127 kB]
Hit:6 [URL_REDACTED_DUE_TO_FORUM_RULES]/apt-repo-jammy-aarch64 jammy InRelease
Get:7 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-security InRelease [129 kB]
Get:8 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-updates/main arm64 Packages [2,313 kB]
Get:9 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-updates/main arm64 DEP-11 Metadata [114 kB]
Get:10 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-updates/restricted arm64 DEP-11 Metadata [212 B]
Get:11 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-updates/universe arm64 DEP-11 Metadata [356 kB]
Get:12 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-updates/multiverse arm64 DEP-11 Metadata [212 B]
Get:13 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-backports/main arm64 DEP-11 Metadata [3,576 B]
Get:14 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-backports/restricted arm64 DEP-11 Metadata [212 B]
Get:15 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-backports/universe arm64 DEP-11 Metadata [24.0 kB]
Get:16 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-backports/multiverse arm64 DEP-11 Metadata [212 B]
Get:17 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-security/main arm64 Packages [2,074 kB]
Get:18 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-security/main Translation-en [352 kB]
Get:19 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-security/main arm64 DEP-11 Metadata [54.5 kB]
Get:20 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-security/restricted arm64 Packages [2,879 kB]
Get:21 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-security/restricted Translation-en [601 kB]
Get:22 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-security/restricted arm64 DEP-11 Metadata [208 B]
Get:23 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-security/universe arm64 DEP-11 Metadata [125 kB]
Get:24 [URL_REDACTED_DUE_TO_FORUM_RULES]/ubuntu-ports jammy-security/multiverse arm64 DEP-11 Metadata [208 B]
Fetched 9,287 kB in 6s (1,562 kB/s)
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
117 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
Usage:
/usr/bin/python3 -m pip install [options] [package-index-options] …
/usr/bin/python3 -m pip install [options] -r [package-index-options] …
/usr/bin/python3 -m pip install [options] [-e] …
/usr/bin/python3 -m pip install [options] [-e] …
/usr/bin/python3 -m pip install [options] <archive url/path> …
no such option: --break-system-packages
Usage:
/usr/bin/python3 -m pip install [options] [package-index-options] …
/usr/bin/python3 -m pip install [options] -r [package-index-options] …
/usr/bin/python3 -m pip install [options] [-e] …
/usr/bin/python3 -m pip install [options] [-e] …
/usr/bin/python3 -m pip install [options] <archive url/path> …`