I have downloaded the mccabe source code file mccabe-0.6.1.tar.gz and transfer it to my offline server, and got error when install it using /usr/local/bin/pip3 install mccabe-0.6.1.tar.gz --no-index --find-links /usr/lib64/comheadcloud/pypisoft/sourcecode. It was said in the log that the error was caused by "Could not find a version that satisfies the requirement setuptools>=34.4" . The installation process wanted to get setuptools by Internet, but I have installed setuptools with version 47.3.2, and I used --no-index -find-links options to instruct the installation process to find dependencies locally. Why the installation process still search http://pypi.org.
`
2021-05-26T05:33:10,010 Using pip 21.0.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
2021-05-26T05:33:10,013 Non-user install because site-packages writeable
2021-05-26T05:33:10,050 Created temporary directory: /tmp/pip-ephem-wheel-cache-6uru8aqx
2021-05-26T05:33:10,051 Created temporary directory: /tmp/pip-req-tracker-ptvg3wgt
2021-05-26T05:33:10,051 Initialized build tracking at /tmp/pip-req-tracker-ptvg3wgt
2021-05-26T05:33:10,051 Created build tracker: /tmp/pip-req-tracker-ptvg3wgt
2021-05-26T05:33:10,051 Entered build tracker: /tmp/pip-req-tracker-ptvg3wgt
2021-05-26T05:33:10,052 Created temporary directory: /tmp/pip-install-76xz8yzr
2021-05-26T05:33:10,084 Processing ./setuptools_scm-4.1.2.tar.gz
2021-05-26T05:33:10,085 Created temporary directory: /tmp/pip-req-build-1dkt5ol0
2021-05-26T05:33:10,129 Added file:///usr/lib64/comheadcloud/pypisoft/sourcecode/setuptools_scm-4.1.2.tar.gz to build tracker '/tmp/pip-req-tracker-ptvg3wgt'
2021-05-26T05:33:10,133 Created temporary directory: /tmp/pip-build-env-colihfbk
2021-05-26T05:33:10,134 Running command /usr/bin/python3 /usr/local/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-colihfbk/overlay --no-warn-script-location -v --no-binary :none: --only-binary :none: -i https://pypi.o
rg/simple -- 'setuptools>=34.4' wheel
2021-05-26T05:33:10,666 Using pip 21.0.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
2021-05-26T05:33:10,667 Non-user install by explicit request
2021-05-26T05:33:10,695 Created temporary directory: /tmp/pip-ephem-wheel-cache-bpogfslk
2021-05-26T05:33:10,696 Created build tracker: /tmp/pip-req-tracker-ptvg3wgt
2021-05-26T05:33:10,696 Entered build tracker: /tmp/pip-req-tracker-ptvg3wgt
2021-05-26T05:33:10,696 Created temporary directory: /tmp/pip-install-etvadzrp
2021-05-26T05:33:10,711 1 location(s) to search for versions of setuptools:
2021-05-26T05:33:10,711 * https://pypi.org/simple/setuptools/
2021-05-26T05:33:10,711 Fetching project page and analyzing links: https://pypi.org/simple/setuptools/
2021-05-26T05:33:10,711 Getting page https://pypi.org/simple/setuptools/
2021-05-26T05:33:10,712 Found index url https://pypi.org/simple
2021-05-26T05:33:10,714 Looking up "https://pypi.org/simple/setuptools/" in the cache
2021-05-26T05:33:10,714 Request header has "max_age" as 0, cache bypassed
2021-05-26T05:33:10,715 Starting new HTTPS connection (1): pypi.org:443
2021-05-26T05:33:10,717 Incremented Retry for (url='/simple/setuptools/'): Retry(total=4, connect=None, read=None, redirect=None, status=None)
2021-05-26T05:33:10,717 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9698c683c8>: Failed to establish a new connect
ion: [Errno -2] Name or service not known',)': /simple/setuptools/
2021-05-26T05:33:10,718 Starting new HTTPS connection (2): pypi.org:443
2021-05-26T05:33:10,718 Incremented Retry for (url='/simple/setuptools/'): Retry(total=3, connect=None, read=None, redirect=None, status=None)
2021-05-26T05:33:11,219 WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9698c68630>: Failed to establish a new connect
ion: [Errno -2] Name or service not known',)': /simple/setuptools/
2021-05-26T05:33:11,219 Starting new HTTPS connection (3): pypi.org:443
2021-05-26T05:33:11,220 Incremented Retry for (url='/simple/setuptools/'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
2021-05-26T05:33:12,221 WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9698c68780>: Failed to establish a new connect
ion: [Errno -2] Name or service not known',)': /simple/setuptools/
2021-05-26T05:33:12,222 Starting new HTTPS connection (4): pypi.org:443
2021-05-26T05:33:12,223 Incremented Retry for (url='/simple/setuptools/'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
2021-05-26T05:33:14,226 WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9698c688d0>: Failed to establish a new connect
ion: [Errno -2] Name or service not known',)': /simple/setuptools/
2021-05-26T05:33:14,226 Starting new HTTPS connection (5): pypi.org:443
2021-05-26T05:33:14,227 Incremented Retry for (url='/simple/setuptools/'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
2021-05-26T05:33:18,232 WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f9698c68a20>: Failed to establish a new connect
ion: [Errno -2] Name or service not known',)': /simple/setuptools/
2021-05-26T05:33:18,232 Starting new HTTPS connection (6): pypi.org:443
2021-05-26T05:33:18,234 Could not fetch URL https://pypi.org/simple/setuptools/: connection error: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/setuptools/ (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSCo
nnection object at 0x7f9698c68b70>: Failed to establish a new connection: [Errno -2] Name or service not known',)) - skipping
2021-05-26T05:33:18,251 Given no hashes to check 0 links for project 'setuptools': discarding no candidates
2021-05-26T05:33:18,251 ERROR: Could not find a version that satisfies the requirement setuptools>=34.4
2021-05-26T05:33:18,252 ERROR: No matching distribution found for setuptools>=34.4`