Python:AttributeError: module 'pip' has no attribute 'pep425tags'

 

 

之前安装pyhook时,python是3.6.0版本的了,pyhook也是cp36的了怎么还是报错

百度说在shell:

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

此时报错:

AttributeError: module 'pip' has no attribute 'pep425tags'

得了,又是个新毛病:

于是找到了博客:https://blog.csdn.net/qq_33733970/article/details/80503022

AMD64

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

Win32

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

 于是在shell里面输入了:

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

结果成功搜索到了结果;

[('cp36', 'cp36m', 'win32'),
('cp36', 'none', 'win32'), 
('py3', 'none', 'win32'), 
('cp36', 'none', 'any'), 
('cp3', 'none', 'any'), 
('py36', 'none', 'any'),
 ('py3', 'none', 'any'), 
('py35', 'none', 'any'), 
('py34', 'none', 'any'), 
('py33', 'none', 'any'), 
('py32', 'none', 'any'), 
('py31', 'none', 'any'), 
('py30', 'none', 'any')]

------------------------------------------------------------------------------------------------------------------------------------------------------------------------

困惑的是如果是AMD64的是正确的话,那么下载的应该是

但是实际下载确提示版本不对,

输入的是Win32下的内容却报错AttributeError: module 'pip' has no attribute 'pep425tags'

  • 9
    点赞
  • 28
    收藏
    觉得还不错? 一键收藏
  • 26
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 26
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值