pip requires password after upgrading outdated packages

Viewed 7541

I followed this answer to upgrade the outdated Python packages on my Machine running Ubuntu 18.04.4 LTS. I am using pip 20.0.2.

Now, every time I try to install or upgrade a package, an annoying window pops up asking for the passowrd. For example:

pip install --user -U numpy

I get the following window:

enter image description here

When I press Cancel, I get the following output:

WARNING: Keyring is skipped due to an exception: Failed to unlock the collection!
WARNING: Keyring is skipped due to an exception: Failed to unlock the collection!
Requirement already up-to-date: numpy in /home/user/.local/lib/python3.6/site-packages (1.18.1)

Before this issue, I used to install my packages without sudo privileges and without using the --user flag.

What is wrong with pip? How can I fix that?.

I appreciate your help.

2 Answers

Go to "User Accounts", set "automatic login" to "off". At startup, you will be asked your user/password only once; I hope it will fix your problem.

After years of getting this and similar issues with pip the only solution that has worked every time is to work inside conda.

Related