赞
踩
Traceback (most recent call last): File "E:\scoder\PyCharm2023.2.1\plugins\python\helpers\pydev\_pydevd_bundle\pydevd_exec2.py", line 3, in Exec exec(exp, global_vars, local_vars) File "<input>", line 1, in <module> cv2.error: OpenCV(4.8.0) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1255: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvNamedWindow'
pip uninstall opencv-python-headless
pip install opencv-python -i https://mirrors.aliyun.com/pypi/simple/
, 然后问题就解决了WARNING: Ignoring invalid distribution -pencv-python-headless (e:\scoder\python3.10\lib\site-packages)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。