@[module ‘pip’ has no attribute ‘pep425tags’
#由于要用cv2库,所以要下载opencv_python
我去官网自己下载一个whl,在运行
pip install opencv_python‑3.4.1‑cp36‑cp36m‑win_amd64.whl
失败了,显示
opencv_python-4.4.0-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
然后我百度了一下,说要看自己电脑有什么tags,比如我下的这个tags是cp36,但是我电脑没有。然后我就去找怎么可以按自己电脑的tags。
#如何看自己的浏览器可以用什么tags
方法1:
import pip;
print(pip.pep425tags.get_supported())
方法2:
import wheel.pep425tags as w
print(w.get_supported())
方法3:
import pip._internal;
print(pip._internal.pep425tags.get_supported())
这些在我电脑上都失败。
我用的是方法4:python -m pip debug --verbose
参考:
Py之cv2:cv2库(OpenCV,opencv-python)的简介、安装、使用方法(常见函数、方法等)最强详细攻略
module ‘pip‘ has no attribute ‘pep425tags‘的解决方案