python - 从目录安装所有 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
但我不想从在线存储库中获取它,因为它已经在那台机器上。
帮助表示赞赏!
解决方案
移动轮子文件夹并从那里安装
pip install --no-index --find-links=wheels/ -r tf-requirements.txt
推荐阅读
- javascript - 在表单数据中附加多个图像在 java 脚本中工作?
- python - googletrans 问题,AttributeError: 'NoneType' 对象没有属性 'group'
- javascript - angular - 自定义 MatDialogConfig 文件的输入
- parsing - 如何通过lxml检索标签标签内的文本?
- bash - 如何访问 exiv2 ImageSize 属性?
- javascript - 在nestjs guard中使用路径参数
- c++ - 即使我没有包含多个文件,C++ 中的多重定义错误
- java - Mapstruct 更新值而不覆盖
- hyperledger-fabric - Hyperledger Fabric:执行交易失败:超时已过期
- ms-access - 访问 VBA:表达式生成器:SUMIF 语法无效