潇洒郎: AttributeError: partially initialized module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipe

使用Airtest框架时搭建自己的python 环境运行脚本

注意两点:

1、复制两个文件到C:\Windows\System32中

潇洒郎: AttributeError: partially initialized module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipe_第1张图片潇洒郎: AttributeError: partially initialized module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipe_第2张图片

 

 

api-ms-win-downlevel-shlwapi-l1-1-0.dll 与IEShims.dll

2、重新安装opencv-python

pip uninstall opencv-python
pip uninstall opencv-contrib-python
pip install opencv-contrib-python
pip install opencv-python

安装慢的话用清华源安装:

pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple

你可能感兴趣的:(Python学习,opencv,airtest)