-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
Error during installation: post-installation script fails with "externally-managed-environment" #954
Comments
I am in the exact same situation as you. Running a Dell XPS 13 2 in 1. |
I have the same issue and as I understand the situation it happens because after updating my distro my system python is now protected in a way. However then the installation tried to upgrade my local pip env from 2.40 to 2.42 which resulted in a new error.
I tried upgrading my system pythons pip version but was not able to get it to 24.2 so the installation keeps failing EDIT: added logs
|
Same problem here. Running Linux Mint with Lenovo Thinkpad L14 G5 |
Same problem after upgrading to Ubuntu24.04 |
I have the same problem as well no matter what i do i still get cannot uinstall pip 24 |
new to linux but i tried installing from source and that seems to get howdy installed but I'm running into stuff like this when I run 'Traceback (most recent call last): File "/usr/local/lib/x86_64-linux-gnu/howdy/cli.py", line 101, in on Ubuntu24.04.1 |
Same problem on Ubuntu24.04 |
ok found a fix basically, pip and numpy need to be updated to their latest versions for the installation to work i believe the current versions can be found here:
now i would keep the old versions of pip and numpy and move them into a separate folder for later so you can move it back then go ahead and install howdy Now howdy has some issues running on version 2+ of numpy as detailed here: #928 (they may have found a solution recently) so I would move the old install of pip back using 'sudo nautilus' and the old version of numpy as well (I ended up replacing the old pip and numpy versions so I just kept the new pip and used v 1.26 of numpy) I think I also may have done something similar to install dlib as well |
IMHO, this is a temporary workaround at best. The initial error, "error: externally-managed-environment.", tries to protect the system exactly against meddling around with the by the os installed python libraries. I think using a python virtual environment is the correct and clean solution, but I have no clue how this has to be done with a program that gets installed. Probably the venv needs to be created on a pre-inst step or so? |
Same here with Ubuntu 24.04. Can we think to have a snap instead of a packet? Could it works? |
phew - quite a ride 🙈 How I got it to work with Mint 22 (Ubuntu 24.04 base) 😉 disabling python ext. manage lock installing latest >24.2 PIP manually for root Note: be sure not to have system (apt) packages python3-numpy nor python3-pip installed before running the dpkg installing howdy deb package ignoring it's pip requirement adding missing dlib module (should have been in install script?) modify ConfigParser part in: howdy/pam.py optionaldisable Deprecation msg re-enabling ext. manage lock |
I see that the postinstallation script in the Ubuntu PPA tries to upgrade the
would solve the problem without causing any adverse effects. In case |
I couldn't figure out how to install |
I'm having trouble installing Howdy (version 2.6.1). The installation fails during the post-installation script, and I get this error message:
There's a syntax warning about an invalid escape sequence, and then it says "error: externally-managed-environment." It suggests using apt install for system-wide packages or creating a virtual environment if I want to install non-Debian packages. It also mentions that I can override this with --break-system-packages, but I'm worried that could mess up my Python installation or the OS.
Steps to reproduce
I tried to install Howdy using the command sudo apt install howdy.
System Information
Troubleshooting Steps Taken
Even after all this, the installation keeps failing with the same error.
Additional Notes
I really don’t want to use the --break-system-packages option because I’m worried it might cause more problems.
If anyone has run into this issue or has any suggestions on how to fix it, I’d really appreciate the help!
The text was updated successfully, but these errors were encountered: