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