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
- Pin pip to version 19.3.1 in test_manylinux As pip 20.0.1 is not able to install the repaired wheel `testpackage-0.0.1-py3-none-manylinux1_x86_64.whl` due to a bug, we have to pin to the previous ver... — committed to lkollar/auditwheel by lkollar 4 years ago
- test: Pin pip to version 19.3.1 in test_manylinux As pip 20.0.1 is not able to install the repaired wheel `testpackage-0.0.1-py3-none-manylinux1_x86_64.whl` due to a bug, we have to pin to the previo... — committed to lkollar/auditwheel by lkollar 4 years ago
- test: Pin pip to version 19.3.1 in test_manylinux As pip 20.0.1 is not able to install the repaired wheel `testpackage-0.0.1-py3-none-manylinux1_x86_64.whl` due to a bug, we have to pin to the previo... — committed to lkollar/auditwheel by lkollar 4 years ago
- Pin pip version used on Travis * See bug in pip version 20: https://github.com/pypa/pip/issues/7626 — committed to johnor/n_e_s by johnor 4 years ago
- test: Pin pip to version 19.3.1 in test_manylinux (#221) As pip 20.0.1 is not able to install the repaired wheel `testpackage-0.0.1-py3-none-manylinux1_x86_64.whl` due to a bug, we have to pin to t... — committed to pypa/auditwheel by lkollar 4 years ago
- Set pip version to 19.3.1 - most recent pip release 20.0.1 seems to have problems with matching wheel tags https://github.com/apache/incubator-mxnet/issues/14349 https://github.com/pypa/pip/issues/7... — committed to Trusted-AI/adversarial-robustness-toolbox by beat-buesser 4 years ago
- May be unrelated to Catalina? https://github.com/pypa/pip/issues/7626 — committed to jjfiv/example_rust_py by jjfiv 4 years ago
- Get off of pip 20.0.0 https://github.com/pypa/pip/issues/7626 — committed to toybox-rs/toybox-rs by jjfiv 4 years ago
- Install latest version of pip. We added the pining because pip `20.0.1` introduced an issue with wheels tag matching pip `20.0.2` has since been released and fixes the issue: https://github.com/... — committed to Kaggle/docker-python by rosbo 4 years ago
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:
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.