question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

inconsistent version for every package

See original GitHub issue

Description

Running python -m pip install <any package> results in pip trying to downgrade versions until it runs out of them, thinking the metadata is in conflict even though they are of the same version in the error message.

Tried reinstalling python + pip on my Arch x64 already, issue persists for every package

Expected behavior

pip should install a package successfully

pip version

pip 21.0 from /usr/lib/python3.10/site-packages/pip (python 3.10)

Python version

Python 3.10.2

OS

Arch Linux

How to Reproduce

python -m pip <any package>

Output

https://asciinema.org/a/bKM5F5PidbwktgRXoEUqGbR2u

Code of Conduct

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Silurcommented, Mar 13, 2022

@TomasDrozdik indeed it was some weird env edge-case, although I didn’t tinker anything with the default arch python-pip installation on my new machine. My solution was:

sudo pacman -Rncs python-pip
python -m ensurepip
0reactions
TomasDrozdikcommented, Mar 12, 2022

Fair enough, I’ll try to reinstall it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - pip has problems with metadata - Stack Overflow
I'm running now: pip install -U pip and getting: (...) has inconsistent version: filename has '22.1.2', but metadata has '22.1.2' and pip goes ......
Read more >
Cannot install packages with pip - error with inconsistent ...
I recently have an issue trying to install anything with pip. It keeps trying older versions complaining that each one has a version...
Read more >
inconsistent version for every package issue - PythonTechWorld
Running python -m pip install <any package> results in pip trying to downgrade versions until it runs out of them, thinking the metadata...
Read more >
Unable to install package using pip due to different version in ...
I've bee unable to install any package using pip due to some version issues in the metadata. But it seems to be a...
Read more >
How to fix "Package is in a very bad inconsistent state" error?
8 Answers 8 · 3. Finally! This did the trick when dpkg and apt won't remove or reinstall a package · 1. Thanks....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found