pip: "No matching distribution" due to wheel tags not matching in pip 20.0

Environment

  • pip version: 20.0.1
  • Python version: 3.6.9
  • OS: Ubuntu 18.04

Description Pip can seemingly no longer install any version of mxnet newer than 0.9.5.

Expected behavior It should be able to. ๐Ÿ˜ƒ This worked before pip 20.

How to Reproduce Try to install mxnet==1.3.1 in a virtual environment.

Output

$ virtualenv -ppython3 /tmp/venv
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /tmp/venv/bin/python3
Also creating executable in /tmp/venv/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
$ /tmp/venv/bin/pip install mxnet==1.3.1
ERROR: Could not find a version that satisfies the requirement mxnet==1.3.1 (from versions: 0.9.5)
ERROR: No matching distribution found for mxnet==1.3.1

Running pip install with --verbose produces a huge log, in which this seems relevant:

  Skipping link: none of the wheel's tags match: py2-none-manylinux1_x86_64, py3-none-manylinux1_x86_64: https://files.pythonhosted.org/packages/f0/2e/b26eb7273aed1945f59993b3b306442eb41684f931b5380821c39cf50a31/mxnet-1.3.1-py2.py3-none-manylinux1_x86_64.whl#sha256=939575fddd45e8ba39177dd3d53ccce64dea312bc08f493392b1ecace9e1b117 (from https://pypi.org/simple/mxnet/)

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 10
  • Comments: 38 (17 by maintainers)

Commits related to this issue

Most upvoted comments

Expect a bugfix release for this tomorrow, assuming I recover from my current headache by then. ๐Ÿ˜ƒ

Released 20.0.2 containing the fix for this.

If youโ€™re still seeing something similar, please take a look at #7629 (if youโ€™re on PyPy) or file a new issue. ๐Ÿ˜ƒ

If folks want to take #7643 for a spin and confirm that it indeed does fix the issue for them, thatโ€™d be great! To install that, you can do:

pip install https://github.com/pypa/pip/archive/1cf779c1ea88053c690686571d67826f11463232.zip

Please use the ๐Ÿ‘ reaction on this comment if youโ€™ve tried the PR, and it works for you. ๐Ÿ˜ƒ

@jeroendecroos Good catch - that looks like it may be a straight bug in packaging.tags (re-using an iterator rather than re-creating it each time). Could you open an issue against https://github.com/pypa/packaging for this - and if you could make your fix into a PR that would be even better!

Not sure if this helps but Iโ€™m facing the same issue trying to install dotnetcore2

Ran into this late on Friday and arrived at work this morning to find it already fixed and released โ€“ thank you to everyone involved in making the fix happen so quickly! ๐Ÿ˜„

Okie, so the fix is now in master. Iโ€™ll make the release in a bit โ€“ please follow #7531.