模块"pip"没有属性"pep425tags" [英] module 'pip' has no attribute 'pep425tags'

查看:2797
本文介绍了模块"pip"没有属性"pep425tags"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用pip安装.whl时

When I am trying to install .whl with pip

它说:

在此平台上不是受支持的轮子

is not a supported wheel on this platform

为解决此问题,我搜索了Internet,并说我可以将其输入到shell

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

导入点;打印(pip.pep425tags.get_supported())

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

以此我可以获得pip支持的文档和版本

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

但是,当我输入这些代码时,它说:

However, when I input these code, it said:

模块'pip'没有属性'pep425tags'

module 'pip' has no attribute 'pep425tags'

怎么了?

推荐答案

这对我适用于Python 2.7(在使用该版本的virtualenv中):

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

import wheel.pep425tags

print(wheel.pep425tags.get_supported())

这篇关于模块"pip"没有属性"pep425tags"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆