安装VideoCapture详细教程及module‘pip’ has no attribute ‘pep425tags’细解决办法

调用自己笔记本摄像头时候没有VideoCapture’,安装过程中出现的错误:
模块:
错误一:
Traceback (most recent call last): File "D:/pythonproject/myCode/调用摄像头/code.py", line 1, in from VideoCapture import Device ModuleNotFoundError: No module named 'VideoCapture'’
错误2:
AttributeError: module ‘pip’ has no attribute ‘pep425tags’

错误3:
ERROR: VideoCapture-0.9.5-cp38-cp38-win_amd64.whl is not a supported wheel on this platform’


一步步来吧:


VideoCapture‑0.9.5‑cp38‑cp38‑win_amd64.whl( an extension for accessing video devices.)的下载地址:

https://www.lfd.uci.edu/~gohlke/pythonlibs/

安装VideoCapture详细教程及module‘pip’ has no attribute ‘pep425tags’细解决办法_第1张图片

安装VideoCapture详细教程及module‘pip’ has no attribute ‘pep425tags’细解决办法_第2张图片
使用命令:

pip install D:\Download\VideoCapture‑0.9.5‑cp38‑cp38‑win_amd64.whl

安装VideoCapture-0.9.5-cp37-cp37m-win_amd64.whl时候出现错误:ERROR: VideoCapture-0.9.5-cp38-cp38-win_amd64.whl is not a supported wheel on this platform。工作需要必须解决bug。
安装VideoCapture详细教程及module‘pip’ has no attribute ‘pep425tags’细解决办法_第3张图片
平台不支持的话,那平台支持什么样的呢?下面首先是查看pip支持哪些安装:
一:先查看pip支持的安装:
pip安装软件的版本不一致:module ‘pip’ has no attribute ‘pep425tags’
尝试1:
WIN32
import pip
print(pip.pep425tags.get_supported())

我安装时候报错:AttributeError: module ‘pip’ has no attribute ‘pep425tags’
尝试2
AMD64:
import pip._internal
print(pip._internal.pep425tags.get_supported())

我安装时还是报错:AttributeError: module ‘pip._internal’ has no attribute ‘pep425tags’
总有一款适合你:
改为下面的命令:
import wheel.pep425tags
print(wheel.pep425tags .get_supported())

安装VideoCapture详细教程及module‘pip’ has no attribute ‘pep425tags’细解决办法_第4张图片
可以发现pip支持的安装中没有cp38:
所以可以将下载的VideoCapture文件重命名或者重新下载一个支持的。我本人是重新下载了一个:
安装VideoCapture详细教程及module‘pip’ has no attribute ‘pep425tags’细解决办法_第5张图片
安装VideoCapture详细教程及module‘pip’ has no attribute ‘pep425tags’细解决办法_第6张图片
具体问题具体分析吧。一步步来。

你可能感兴趣的:(python函数,安装教程)