python - 无法在 Python 3.9.7 中更新 Duplicity(请求的 duplicity 版本不一致 : filename has '0.8.21.post7' , 但元数据有 '0.8.21.post0' )

标签 python ubuntu pip duplicity

我正在尝试使用 pip install -U duplicity 更新 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。
任何输入都受到高度赞赏。

最佳答案

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

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

  • 几轮后为我工作:)

    关于python - 无法在 Python 3.9.7 中更新 Duplicity(请求的 duplicity 版本不一致 : filename has '0.8.21.post7' , 但元数据有 '0.8.21.post0' ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71187101/

    相关文章:

    python - 使用整数索引访问 pandas Multiindex Dataframe

    python 列表理解 VS 行为

    SQLite 的 Python 轻量级数据库包装器

    c++ - 为什么我会收到使用 MPI 屏障 [c++] 的 fatal error

    python - 使用比特币 trezor 的 ssh 代理

    python - 泄漏 TarInfo 对象

    linux - 从 C++ 应用程序代码调用 Linux 系统调用?

    Python 3.9 pip 安装

    python - importError pdfkit with docker 要求 wkhtmltopdf

    Python 请求模块 - 未找到模块