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

pipx fails to install #391

Open
iconoclasthero opened this issue Aug 18, 2024 · 3 comments
Open

pipx fails to install #391

iconoclasthero opened this issue Aug 18, 2024 · 3 comments

Comments

@iconoclasthero
Copy link

$ pipx install grip
Fatal error from pip prevented installation. Full pip output in file:
    /home/$USER/.local/state/pipx/log/cmd_2024-08-18_19.29.59_pip_errors.log

pip seemed to fail to build package:
    docopt>=0.4.0

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error

Error installing grip.

$ cat /home/$USER/.local/state/pipx/log/cmd_2024-08-18_19.29.59_pip_errors.log
PIP STDOUT
----------
Collecting grip
  Downloading grip-4.6.2-py3-none-any.whl.metadata (961 bytes)
Collecting docopt>=0.4.0 (from grip)
  Downloading docopt-0.6.2.tar.gz (25 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'error'

PIP STDERR
----------
  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: -11
  ╰─> [0 lines of output]
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: -11
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Python 3.12.5
pipx 1.6.0
pip 24.1.1 from /usr/lib/python3/dist-packages/pip (python 3.12)

Rhino Linux rolling release based on
OS: Rhino Linux 2024.2~RC (server) x86_64
Kernel: Linux 6.10.4-061004-generic
Shell: bash 5.2.21

@iconoclasthero
Copy link
Author

Oh I forgot to add, for anyone who hits this error:
apt install python3-docopt
python3-docopt is already the newest version (0.6.2-6).

@kenshanta
Copy link

why use pipx instead of just pip itself? just curious

@Disonantemus
Copy link

why use pipx instead of just pip itself? just curious

To me, using pipx for CLI tools is better for every python package that is not in repos (Main, Extra, AUR) or not updated, in Arch Linux I get:

$ pip install grip
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.

Maybe you get something similar in other distros.
With pipx install everything, simple and easy, because venv.

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

3 participants