module 'pip' has no attribute 'pep425tags'

前端 未结 9 1646
感动是毒
感动是毒 2020-12-18 00:10

When I am trying to install .whl with pip

it said:

is not a supported wheel on this platform

to solve this problem, I

相关标签:
9条回答
  • 2020-12-18 01:10

    AMD64

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

    WIN32

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

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

    0 讨论(0)
  • 2020-12-18 01:11

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

    import wheel.pep425tags
    
    print(wheel.pep425tags.get_supported())
    
    0 讨论(0)
  • 2020-12-18 01:14

    For pip v10 use this:

    import pip._internal; print(pip._internal.pep425tags.get_supported())
    
    0 讨论(0)
提交回复
热议问题