You are not logged in.

#1 2024-01-12 14:36:13

madmassa
Member
Registered: 2022-11-13
Posts: 1

pip install failing when trying to install python libraries

I was facing this problem with all python libraries.

pip install flet
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try 'pacman -S
    python-xyz', where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Arch-packaged Python package,
    create a virtual environment using 'python -m venv path/to/venv'.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip.
    
    If you wish to install a non-Arch packaged Python application,
    it may be easiest to use 'pipx install xyz', which will manage a
    virtual environment for you. Make sure you have python-pipx
    installed via pacman.

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.

I'm a newbie and i don't know how i can solve it, can someone help me?

Offline

#2 2024-01-12 14:42:35

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: pip install failing when trying to install python libraries

If you want to install it system-wide, use python-flet in the AUR. If you want it only for your user and only when you activate it, you need to use a venv like it says.

Offline

#3 2024-01-12 22:35:09

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 713

Re: pip install failing when trying to install python libraries

Use

pipx install flet

May need `pacman -S python-pipx` first.

Offline

Board footer

Powered by FluxBB