[Python] Pip Install Subprocess to Install Build Dependencies Did Not Run Successfully

Discussão em 'Python' iniciado por Stack, Fevereiro 28, 2025.

  1. Stack

    Stack Membro Participativo

    I've tried a few other threads here tied to updating setuptools first, but no dice.

    I have a machine that is going to ultimately be air-gapped. I'm trying to get the installation process down. As doing so, my procedure right now included going to the identical working machine and using pip freeze to generate a requirements.txt

    I then on the target machine, put the requirements.txt. I turned the internet on temporarily for testing. I did a pip download on requirements.txt to pull the packages. I then shut the internet off and tried pip install --no-index --find-links=. requirements.txt

    It installs the first few packages fine, but then it hits some and has

    Processing ./ansible-vault-2.1.0.tar.gz (from -r requirements.txt (line 3))
    Installing build dependencies ... error
    error: subprocess-exited-with-error

    × pip subprocess to install build dependencies did not run successfully.
    │ exit code: 1
    ╰─> [4 lines of output]
    Looking in links: .
    Processing ./setuptools-68.2.2-py3-none-any.whl
    ERROR: Could not find a version that satisfies the requirement wheel (from versions: none)
    ERROR: No matching distribution found for wheel
    [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: 1
    ╰─> See above for output.


    This happens for a few different packages, but I cannot find anything that would cause this. Can someone point me in the right direction, as the few threads I've tried on SO and the few Google searches I've tried almost all point to making sure your packages are for the right Python version (they must be, I pulled them from the version I'm trying to install with), and updating setup tools (I did).

    Thanks

    Continue reading...

Compartilhe esta Página