pip now requires --break-system-packages in several scripts #834

Closed
opened 2026-02-04 21:48:17 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @weirdal3333 on GitHub (Apr 19, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Nginx Proxy Manager

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/nginxproxymanager.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📝 Provide a clear and concise description of the issue.

When running update inside the container, it fails to update. I had to add --break-system-packages to this line: 73a42eaaae/ct/nginxproxymanager.sh (L102)

After adding --break-system-packages to that line, the script succeeds.

🔄 Steps to reproduce the issue.

Install the script with default settings. Run the update command. It should error.

Paste the full error output (if available).

⠼ Setting up Enviromenterror: 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.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.11/README.venv for more information.

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.
⠴ Setting up Enviroment
[ERROR] in line 102: exit code 0: while executing command $STD python3 -m pip install --no-cache-dir certbot-dns-cloudflare

root@nginxproxymanager:~#

🖼️ Additional context (optional).

No response

Originally created by @weirdal3333 on GitHub (Apr 19, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Nginx Proxy Manager ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/nginxproxymanager.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📝 Provide a clear and concise description of the issue. When running `update` inside the container, it fails to update. I had to add `--break-system-packages` to this line: https://github.com/community-scripts/ProxmoxVE/blob/73a42eaaaed22d69431f953856a7035060cfe610/ct/nginxproxymanager.sh#L102 After adding `--break-system-packages` to that line, the script succeeds. ### 🔄 Steps to reproduce the issue. Install the script with default settings. Run the `update` command. It should error. ### ❌ Paste the full error output (if available). ⠼ Setting up Enviromenterror: 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. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.11/README.venv for more information. 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. ⠴ Setting up Enviroment [ERROR] in line 102: exit code 0: while executing command $STD python3 -m pip install --no-cache-dir certbot-dns-cloudflare root@nginxproxymanager:~# ### 🖼️ Additional context (optional). _No response_
OVERLORD added the not a script issue label 2026-02-04 21:48:17 +03:00
Author
Owner

@michelroegl-brunner commented on GitHub (Apr 20, 2025):

No, it dose not strictly require it. This is a persisting issue with pytom. Look under discussions for Externaly Managed.

@michelroegl-brunner commented on GitHub (Apr 20, 2025): No, it dose not strictly require it. This is a persisting issue with pytom. Look under discussions for Externaly Managed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#834