从一个目录安装所有whl文件

2024-06-25 23:46:24 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试为文件夹的脱机安装收集文件。在

在一台机器上,我做了pip download -r requirements.txt -d wheelhouse,其中wheelhouse是一个目录,我所有的whl都在其中。在

然后我将wheelhouse目录移到远程机器(没有网络访问权限)。我在那台机器上安装了miniconda。如何在一个swift命令中安装该目录中的所有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

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

感谢帮助!在


Tags: pip文件org目录文件夹pypi机器ssl