问题
I'm running on a disconnected network. I have downloaded a collection of wheels (.whl) and .tar.gz files to /mnt/dist/python. I want to install boto3 which is in the directory. All of the dependencies are also in the directory. However, when I tell pip to install either boto3 or boto-2.49.0-py2.py3-none-any.whl it tries to go to the network.
How do I tell it to install from /mnt/dist/python instead of going to the network?
回答1:
A slightly modified version of what @Marek Piotrowski commented worked out for me. I just move to the folder where the .whl file was stored and then typed
pip install --no-index --find-links . boto-2.49.0-py2.py3-none-any.whl
来源:https://stackoverflow.com/questions/63403161/tell-pip-install-to-never-go-to-the-network-and-always-download-from-a-local