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.

Wheels built from different versions of pip cannot be installed successfully

See original GitHub issue
  • Pip version: 19.0.3
  • Python version: 3.6.0
  • Operating system: windows7, 64bit

I build a wheel using pip wheel numpy command and copy it to another win7, 64bit computer with 7.0.0 pip and 3.6.0 python to install, it fails however. When I upgrade target pip into version 19.1.1, it succeed.

It seems that wheel file must be built and installed through pip with the same major version number(of course python version should meet first), is that right?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
pfmoorecommented, May 9, 2019

In theory, as long as the wheel tags are compatible with the target environment, pip will be able to install the wheel.

But at the moment, you haven’t even explained what you mean by “it fails however”. So it’s pointless speculating what might be going wrong.

0reactions
zifeiYvcommented, May 10, 2019

Pip 71. is pretty ancient, and IIRC the valid tag values have changed since then (specifically the cp36m ABI tag is new). So yes, you should upgrade pip to get a version compatible with current tag standards. This won’t affect pure Python wheels like six, as they don’t have ABI tag restrictions.

Thank you very much for your patience and explanation. I will try to avoid these problems in the future.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the meaning of "Failed building wheel for X" in pip ...
If the package is not a wheel, pip tries to build a wheel for it (via setup.py bdist_wheel ). If that fails for...
Read more >
How to install, download and build Python wheels - ActiveState
Pip will install all “flavors” of wheels, including: ... To install a specific version of a package, run the following command: pip install...
Read more >
Could not build wheels for X which use PEP 517 and cannot ...
To solve the error "Could not build wheels for X which use PEP 517 and cannot be installed directly", run the pip install...
Read more >
PEP 517 and projects that can't install via wheels - Packaging
PEP 517 has no support for direct installs from source, with everything being built as a wheel and installed from that.
Read more >
What Are Python Wheels and Why Should You Care?
Different Types of Wheels ; Building a Pure-Python Wheel ... 9Successfully built uwsgi 10Installing collected packages: uwsgi 11Successfully installed ...
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