python-3.x - 为什么 pip3 在 Ubuntu 20.04 上安装/更新软件包后要创建 kdewallet?

标签 python-3.x pip sudo kde ubuntu-20.04

我最近将我的系统从 Ubuntu 18.04 更新到 20.04。之后我尝试使用提到的 shell 命令更新我所有的 pip3 包 here (我将“pip”改为“pip3”)。
在它更新了几个包后,出现了这个提示:
KDE Wallet Service
由于我在更新/安装软件包时从未见过它,因此我取消了它,导致立即重新打开相同的提示,并且终端显示以下警告:

WARNING: Keyring is skipped due to an exception: Failed to unlock the keyring!
在它尝试安装的下一个包发生同样的情况后,我按下了 CTRL+C。从那时起,当我尝试安装软件包时,也会发生同样的情况。
示例:
pip3 install numpy
WARNING: Keyring is skipped due to an exception: Failed to unlock the keyring!
WARNING: Keyring is skipped due to an exception: Failed to unlock the keyring!
Collecting numpy
  WARNING: Keyring is skipped due to an exception: Failed to unlock the keyring!
  Using cached numpy-1.19.2-cp38-cp38-manylinux2010_x86_64.whl (14.5 MB)
Installing collected packages: numpy
  WARNING: The scripts f2py, f2py3 and f2py3.8 are installed in '/home/gesuchter/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed numpy-1.19.2
我已经尝试通过重新安装 python3-pip 来解决我的问题。
以下是一些有用的信息:
pip3 --version
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)

ls ~/.local/share/keyrings
default  login.keyring  user.keystore

find ~/.config/kwalletrc
find: ‘/home/gesuchter/.config/kwalletrc’: No such file or directory

最佳答案

此问题已在上游报告,请参阅 https://github.com/pypa/pip/issues/8090以及与该线程相关的其他问题。
tl;博士:新版本的 pip 过于急切地搜索 key 环以获取访问某些软件包下载所需的凭据。如果它最终查询尚不存在的 key 环(例如 kdewallet),则会出现您注意到的提示。目前尚不清楚这将如何以及在哪个版本中完全修复。
编辑:请注意,stackoverflow 不是错误报告的正确位置:pip 维护者不太可能看到这一 pip ,据我所知,它也不是 stackoverflow 的真正范围。这可能是另一个 stackexchange 社区的问题(也许是 super 用户?)。但是,由于您已经确定这是 pip 的问题,因此报告的最佳位置应该是 https://github.com/pypa/pip 上自述文件中指示的任何通信 channel 。

关于python-3.x - 为什么 pip3 在 Ubuntu 20.04 上安装/更新软件包后要创建 kdewallet?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64570510/

相关文章:

linux - 如何使用sudo获取运行命令的pid

python-3.x - Pandas asof 和 Polars join 中的合并是否相同

python - 为什么在 python 3.5 中使用 asyncio 时出现被忽略的异常

python - 观察变量何时被删除

python - 我无法在 WSL Ubuntu 上使用 pip

python - 如何为 Python 2 安装 pip

Android Debug Bridge (adb) 命令行工具存在于 $PATH 中,但在 linux 中为 "command not found"

python - Python 中的 Heapsort 不排序

python-3.x - ModuleNotFoundError : No module named 'pandas.core.indexes'

installation - ubuntu-如何以该用户身份而不是sudo安装软件。收到错误 “Could not open lock file ”