How does pip decide which many linux wheel to use? How does pip decide which many linux wheel to use? linux linux

How does pip decide which many linux wheel to use?


You need pip 8.1 or later and a linux distribution that is based on glibc (and not musl libc as alpine linux for instance).

EDIT: the function pip._internal.utils.compatibility_tags.get_supported() should return the list of supported platform tags in order. Pip prefers wheel tags that appear earlier in this list over tags that appear later.

Also may I kindly suggest you to use python 3.5 instead of 2.7 ;)


For pip 10 you'll need to run:

from pprint import pprintimport pip._internalpprint(pip._internal.pep425tags.get_supported())


So, the correct answer is that pip has a list of supported tags and will try to match those. pip.pep425tags.get_supported() will list the tags for your platform and will also use that list to match manylinux binary wheels.