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

Cannot install on Ubuntu 24.04 #343

Open
ingria opened this issue Sep 1, 2024 · 1 comment
Open

Cannot install on Ubuntu 24.04 #343

ingria opened this issue Sep 1, 2024 · 1 comment

Comments

@ingria
Copy link
Contributor

ingria commented Sep 1, 2024

Installation fails in the very beginning

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.

ubuntu 24.04, python 3.12.3

@ingria ingria changed the title Cannot install on root user Cannot install on Ubuntu 24.04 Sep 1, 2024
@adapt7
Copy link

adapt7 commented Oct 3, 2024

Had the same issue. It looks like this command solves the problem:

sudo mv /usr/lib/python3.12/EXTERNALLY-MANAGED /usr/lib/python3.12/EXTERNALLY-MANAGED.old

Read more about potential side effects here.

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