我最近把我的系统从Ubuntu18.04升级到了20.04.之后,我try 使用shell命令here更新我的所有pip3包(我将"pip"改为"pip3").
在更新了几个软件包后,出现了以下提示:
因为我在更新/安装软件包时从未见过它,所以我取消了它,导致同一提示符立即重新打开,终端显示以下警告:
WARNING: Keyring is skipped due to an exception: Failed to unlock the keyring!
我按下CTRL+C键,它试图安装的下一个软件包也发生了同样的情况.自从我try 安装软件包后,同样的情况也发生了.
例子:
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
我已经try 通过重新安装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