ars*_*l88 7 python pip python-3.x
我正在尝试收集用于文件夹脱机安装的文件。
在一台机器上,我做了pip download -r requirements.txt -d wheelhouse,其中wheelhouse是我所有的whl所在的目录。
然后,我将驾驶室目录移动到远程计算机(没有网络访问权限)。我在那台机器上安装了 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
Run Code Online (Sandbox Code Playgroud)
但我不想从在线存储库中获取它,因为它已经在那台机器上了。
帮助表示感谢!
Abb*_*bas 10
移动wheels文件夹并从那里安装
pip install --no-index --find-links=wheels/ -r requirements.txt
Run Code Online (Sandbox Code Playgroud)
“--no-index”参数避免搜索 PyPI 索引 “--find-links”是用于查找某些包的位置数组。您可以向其传递文件路径、TAR 或 WHEEL 文件的单独 URL、HTML 文件、git 存储库等。
| 归档时间: |
|
| 查看次数: |
16772 次 |
| 最近记录: |