之前安装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’
module ‘pip’ has no attribute ‘pep425tags’
7540
importpip._internalprint(pip._internal.pep425tags.get_supported())
来自: qq_33733970
作者:A_Tester
来源:CSDN
原文:https://blog.csdn.net/weixin_38917807/article/details/81675948