0

我正在尝试使用 更新 Duplicity pip install -U duplicity,但它失败并显示以下输出:

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'

我看到它使用了一些缓存文件,但我没有找到它来尝试清除它。此外,我发现它与下载文件中的某些元数据不匹配,但它是在不久前(去年 11 月)发布的,因此不太可能监督如此重要的任何事情。不过,我不知道如何解决它。

谷歌搜索这条消息的任何部分也没有带来任何东西。

我看到它是在很久以前(去年 11 月)发布的,所以我相信它应该是我这边的东西。

如果有的话,我在 Ubuntu 21.10 下,我的 Python 是 3.9.7。

任何输入都受到高度赞赏。

4

1 回答 1

0

我刚刚遇到了同样的问题。使用以下步骤解决了它:

  • 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"
  • 尝试安装重复:python3 -m pip --no-cache-dir install "duplicity==0.8.21.post7"
  • 在弹出时解决丢失的系统包,然后重试

几轮后为我工作:)

于 2022-03-02T01:10:41.070 回答