【发布时间】:2021-02-10 16:20:09
【问题描述】:
我最近将我的系统从 Ubuntu 18.04 更新到 20.04。之后我尝试使用here 提到的 shell 命令更新我所有的 pip3 包(我将“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
【问题讨论】:
-
这已在下面的答案中提到的an issue 中得到修复。
pip install --upgrade pip解决了这个问题。
标签: python-3.x pip sudo kde ubuntu-20.04