Skip to content

Do not recommend sudo pip, at least on Linux #1502

@alexpdp7

Description

@alexpdp7

Recent Debian versions refuse to install packages as root with pip. Recent Fedora versions display a big warning message (although they proceed by default). This is a good idea, because installing with root uses the system Python, and installing things with that can cause unintended side-effects.

(I'm not sure I would recommend this either on macOS, but I have less knowledge about that.)

I would recommend steering people towards distribution packages. Debian stable has a somewhat old version (well, the version that was out when Debian stable was released), but Fedora tracks closely pgcli.

If people want to install a newer version, I'd recommend pipx, which is packaged for common distros, or uvx.

I'm happy to send a PR editing the README if you let me know what you would prefer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions