简体   繁体   English

无法在 Python 3.9.7 中更新 Duplicity(请求的 duplicity 版本不一致:文件名具有“0.8.21.post7”,但元数据具有“0.8.21.post0”)

[英]Can't update Duplicity in Python 3.9.7 (Requested duplicity has inconsistent version: filename has '0.8.21.post7', but metadata has '0.8.21.post0')

I'm trying to update Duplicity with pip install -U duplicity , but it fails with the following output:我正在尝试使用pip install -U duplicity更新 Duplicity,但失败并显示以下 output:

Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: duplicity in /usr/lib/python3/dist-packages (0.8.20)
Collecting duplicity
  Using cached duplicity-0.8.21.post7.tar.gz (1.4 MB)
  Preparing metadata (setup.py) ... done
Discarding https://files.pythonhosted.org/packages/23/01/c8fabb7811feb13d762d976155f3dba912f0dab93f033c655f3180148574/duplicity-0.8.21.post7.tar.gz#sha256=3c526376e61a372c9a5aee8b3a52d4b498d297711d7fb232604ace87c378ba41
(from https://pypi.org/simple/duplicity/) (requires-python:>2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4):
Requested duplicity from https://files.pythonhosted.org/packages/23/01/c8fabb7811feb13d762d976155f3dba912f0dab93f033c655f3180148574/duplicity-0.8.21.post7.tar.gz#sha256=3c526376e61a372c9a5aee8b3a52d4b498d297711d7fb232604ace87c378ba41
has inconsistent version: filename has '0.8.21.post7', but metadata has '0.8.21.post0'

I see it uses some cached file, but I failed to find it to try to clear it.我看到它使用了一些缓存文件,但我没有找到它来尝试清除它。 Also I see it mismatches some metadata in downloaded file, but it was released a while ago (last Nov) so unlikely anything this critical would be overseen.我还看到它与下载文件中的某些元数据不匹配,但它是在不久前(去年 11 月)发布的,所以不太可能监督如此重要的事情。 Still, I'm out of clue how to fix it on my end.尽管如此,我仍然不知道如何解决它。

Googling with any parts of this message also didn't bring anything.谷歌搜索此消息的任何部分也没有带来任何结果。

I see it was released quite a while ago (last Nov), so I believe it should be something on my side.我看到它是很久以前(去年 11 月)发布的,所以我相信它应该是我这边的东西。

If anything, I'm under Ubuntu 21.10 and my Python is 3.9.7.如果有的话,我在 Ubuntu 21.10 下,我的 Python 是 3.9.7。

Any input is highly appreciated.非常感谢任何输入。

I just ran into the same problem.我刚遇到同样的问题。 Resolved it using these steps:使用以下步骤解决了它:

  • installed the "basic requirements" from https://gitlab.com/duplicity/duplicity/-/blob/rel.0.8.21/requirements.txt via pip: python3 -m pip --no-cache-dir install fasteners future python-gettext "setuptools>=44.1.1" "setuptools-scm>=5.0.2"https://gitlab.com/duplicity/duplicity/-/blob/rel.0.8.21/requirements.txt通过 pip 安装“基本要求”: python3 -m pip --no-cache-dir install fasteners future python-gettext "setuptools>=44.1.1" "setuptools-scm>=5.0.2"
  • tried installing duplicity: python3 -m pip --no-cache-dir install "duplicity==0.8.21.post7"尝试安装口是心非: python3 -m pip --no-cache-dir install "duplicity==0.8.21.post7"
  • resolved missing system packages as they popped up, then retried在弹出时解决丢失的系统包,然后重试

Worked for me after a few rounds:)几轮后为我工作:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM