i am trying to install setuptools package on a secure environment so no access to internet. I have uploaded setuptools-68.2.2.tar.gz, and tried running ‘pip install setuptools-68.2.2.tar.gz’ -but get following errors:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, stats=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.HTTPSConnection object at 0x0000000003AD4880>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed’)': /simple/wheel/
Do i need to add some params for offline install?
What exactly are the details here - what is your threat model?
How did Python get on to the system?
How did Pip get on to the system?
How do you plan for future packages to get on to the system for installation?
Mainly I’m confused because Python normally comes with both Pip and Setuptools (and will for a little while, even though new projects should normally prefer a
pyproject.toml based setup). Some vendors provide a Python where Setuptools isn’t available, but in these cases Pip shouldn’t be available either. And if you’re building from source it should be easy enough to build both of them yourself as well.