gpt4 book ai didi

pipenv 安装包失败

转载 作者:行者123 更新时间:2023-12-05 07:29:28 27 4
gpt4 key购买 nike

我正在尝试使用 pipenvPipfile 安装包,但我一直收到错误,我不知道如何调试。

pip --version
pip 18.1

pipenv --version
version 2018.10.9

我得到的错误是:

pipenv install --dev --deploy

Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Installing dependencies from Pipfile.lock (917af8)…
An error occurred while installing backports-ssl-match-hostname==3.5.0.1 --hash=sha256:502ad98707319f4a51fa2ca1c677bd659008d27ded9f6380c79e8932e38dcdf2! Will try again.
🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 185/185 — 00:00:33
Installing initially failed dependencies…
Collecting backports-ssl-match-hostname==3.5.0.1 :00

Could not find a version that satisfies the requirement backports-ssl-match-hostname==3.5.0.1 (from -r /tmp/pipenv-qlbc3amj-requirements/pipenv-akfm2pt_-requirement.txt (line 1)) (from versions: )
No matching distribution found for backports-ssl-match-hostname==3.5.0.1 (from -r /tmp/pipenv-qlbc3amj-requirements/pipenv-akfm2pt_-requirement.txt (line 1))

☤ ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/1 — 00

查看 Pipfile.lock 我可以找到 backports 包定义为:

   "backports.ssl-match-hostname": {
"hashes": [
"sha256:502ad98707319f4a51fa2ca1c677bd659008d27ded9f6380c79e8932e38dcdf2"
],
"version": "==3.5.0.1"
},

使用 verbose 标志运行所有内容,backports 包是 recurly 的依赖项,它位于 Pipfile 中:

 recurly = ">=2.8.6"

最佳答案

当你的 pipenv shell 处于事件状态时,将你的 pip 版本降级到 18.0.0

python -m pip install pip==18.0.0

对我有用

关于pipenv 安装包失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52736682/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com