module 'pip' has no attribute 'pep425tags'

When I am trying to install .whl with pip

it said:

is not a supported wheel on this platform

to solve this problem, I searched the Internet and it said I can input this into shell

import pip; print(pip.pep425tags.get_supported())

with this I can get the documents and versions that pip supports

However, when I input these code, it said:

module 'pip' has no attribute 'pep425tags'

What's wrong?


This worked for me with Python 2.7 (in a virtualenv using that version):

import wheel.pep425tags print(wheel.pep425tags.get_supported())


For pip v10 use this:

import pip._internal; print(pip._internal.pep425tags.get_supported())



import pip._internal;print(pip._internal.pep425tags.get_supported())


import pip;print(pip.pep425tags.get_supported())

then pip install <.whl> by corresponding platform wheel(https://www.lfd.uci.edu/~gohlke/pythonlibs/)


  • No pip binary after installing Python 3.4.2 on Centos 6.5
  • how to ignore xml namespaces?
  • user data scripts fails without giving reason
  • Is looping through all style sheets and classes a good idea in JavaScript?
  • Making Google Visualization - Annotation Chart to work in GWT
  • why calling cd shell command through system() or execvp() from a child process won't work?
  • Installing Perl6 and Panda on Ubuntu 15.10. Problems with bootstrap.pl
  • Cannot get text from text area
  • How can I get the full list of running processes on a Mac from a python app
  • Getting error 'Cannot read property 'document' of undefined' while importing exp
  • How can I restyle a word when rendering a pdf with pdf.js?
  • Uncaught TypeError: $(…).select2 is not a function
  • Remove changes from one element when event occurs on another element?
  • Button click event not firing in jQuery
  • Django simple Captcha “No module named fields” error
  • Chart.js Multiple dataset
  • How do I exclude a dependency in provided scope when running in Maven test scope?
  • Is there a perl module to validate passwords stored in “{crypt}hashedpassword” “{ssha}hashedpassword
  • How do I get HTML corresponding to current DOM tree?
  • JQuery Internet Explorer and ajaxstop
  • JSON response opens as a file, but I can't access it with JavaScript
  • Spark fat jar to run multiple versions on YARN
  • Meteor helpers not available in Angular template
  • Can I check if a recipient has an automatic reply before I send an email?
  • Check if a string to interpolate provides expected placeholders
  • Change an a tag attribute in JavaScript based on screen width
  • Matplotlib draw Spline from multiple points
  • Why winpcap requires both .lib and .dll to run?
  • align graphs with different xlab
  • Return words with double consecutive letters
  • Python: how to group similar lists together in a list of lists?
  • Benchmarking RAM performance - UWP and C#
  • Acquiring multiple attributes from .xml file in c#
  • using HTMLImports.whenReady not working in chrome
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • How can I remove ASP.NET Designer.cs files?
  • Busy indicator not showing up in wpf window [duplicate]
  • Reading document lines to the user (python)
  • Python/Django TangoWithDjango Models and Databases
  • java string with new operator and a literal