首页 > 解决方案 > 从目录安装所有 whl 文件

问题描述

我正在尝试为文件夹的离线安装收集文件。

在一台机器上,我做了,我所有的 whl 将在pip download -r requirements.txt -d wheelhouse哪里的目录。wheelhouse

然后我将驾驶室目录移动到远程机器(没有网络访问权限)。我在那台机器上安装了 miniconda。如何在一个快速命令中安装该目录中的所有 whl 文件?

此外,每当我尝试安装单个文件(pip install {path to.whl file})时,我都会得到

Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1056)'))) - skipping

但我不想从在线存储库中获取它,因为它已经在那台机器上。

帮助表示赞赏!

标签: pythonpython-3.xpip

解决方案


移动轮子文件夹并从那里安装

pip install --no-index --find-links=wheels/ -r tf-requirements.txt

推荐阅读