How to intall pip package

i want to install this:

when i try:

pip install resemble-enhance --upgrade

i prints:

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 searched the main repo and aur for resemble-enhance and couldnt find it

sudo pip install resemble-enhance --break-system-packages

will do it.

2 Likes

On an Arch-based distro, you should never use pip to install packages system wide. In most cases, this will break updates due to the way the package manager works on Arch.

You should only use pip to install at a user level.

Please don’t ever do this. The fact that you are passing a flag to tell pip to break things should tell you something.

3 Likes
mkdir resemble-enhance
cd resemble-enhance
python -m venv env
source env/bin/activate
pip install resemble-enhance --upgrade

Anytime you need to use the package, cd into the directory and source the environment file.

cd resemble-enhance
source env/bin/activate

then you can use the application as you want.

Just make sure to never run pip command with sudo.

4 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.