-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Installing pip package on Ubuntu224.04 is no longer available #60
Comments
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution! Please read this blog post to see the reasons why I mark issues as stale. |
Hi @kissifrot :) The @geerlingguy has stated that he does not wish to address the Python Externally Managed Environment issue within the supervisor role and that the role requires PIP to have permission to manage packages to function correctly. Considering this, an alternative I found is to pass the environment variable PIP_BREAK_SYSTEM_PACKAGES, which corresponds to the break-system-packages flag. This flag allows PIP to manage packages even on operating systems with such restrictive conditions. Note 1: It is necessary to use Note 2: By using the environment variable, the role continues to work even on operating systems that do not have the Python Externally Managed mode enabled. So, no issues arise in these scenarios. Working Exampleansible.builtin.import_role:
name: geerlingguy.supervisor
environment:
PIP_BREAK_SYSTEM_PACKAGES: "1" |
Hello,
Since Ubuntu 24.04 (I'm not sure whether 22.04 had the issue), it's not possible to install the package using standard
pip install
anymore.Now recommended method is using the
python3-supervisor
deb package on those systems, or use a virtual environment instead.Would it be possible you add this support?
The text was updated successfully, but these errors were encountered: