我想安装 Python 包,但我的机器有防火墙阻止互联网访问。我想安装一些 python 包,我发现我可以去 pypi.org 下载 .whl 文件,然后将它们传输到我的受保护机器中。在正确的目录中使用 pip install some-package.whl
我能够安装 xlrd 包。不幸的是,我想安装的所有其他软件包都遇到了这个错误:
Defaulting to user installation because normal site-packages is no writeable
Processing c:\users\me\some-package.whl
这是奇怪的部分
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 0x000000B865B494C0>: Failed to establish new connection: [Win Error 10090]
看起来 pip 仍在尝试访问互联网,即使我正在安装 .whl 文件,因此不需要互联网。也许这与我要安装的软件包有关。我想安装 Pandas 和 Requests 等。
任何帮助将不胜感激