情境再现:

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

 

分析问题:

百度可知是Win32和Win64的输入命令各有所不同。

 

解决问题:

win64

import pip._internal

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

 

win32

import pip

print(pip.pep425tags.get_supported())

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

感谢这篇博客

http://www.cnblogs.com/kingwangzhen/p/9395830.html

 

相关文章: