I am trying to install a package with pip on a system where internet connectivity is not possible. I have all the files (wheel and tar.gz) for the necessary packages on the local hard drive.
When I try to install a package I get this:
(...)> pip install --no-index -f . --no-cache-dir curio
Looking in links: .
Processing c:usersgabe2projectscorrosiondistsendcurio-1.6.tar.gz
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [3 lines of output]
Looking in links: .
ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
ERROR: No matching distribution found for setuptools>=40.8.0
[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.
note: This error originates from a subprocess, and is likely not a problem with pip.
It seems like the cause of the error is this:
ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
ERROR: No matching distribution found for setuptools>=40.8.0
But it’s a lie, because setuptools 65.5.0 is installed.
(...)> pip list
Package Version
------------- --------------
async-helpers 1.0
hanna-meter 2024.5.19.dev3
pip 23.2.1
setuptools 65.5.0
What is going on?
P.S. All of the required files are present
(...)> ls
async_helpers-1.0-py3-none-any.whl* hanna_meter-2024.5.19.dev3-py3-none-any.whl*
curio-1.6.tar.gz* venv/