简体   繁体   English

该库在运行 Python 虚拟环境时在 function 错误中编译时没有 QT 支持

[英]The library is compiled without QT support in function error when running Python virtual environment

I was trying to run this installed library - https://github.com/alkasm/magicwand but when I tried to run a command in the commmand line "python -m magicwand C:\Users\home\Pictures\img.png", it returned this error -我试图运行这个已安装的库 - https://github.com/alkasm/magicwand但是当我尝试在命令行“python -m magicwand C:\Users\home\Pictures\img.png”中运行命令时,它返回了这个错误 -

Traceback (most recent call last):
  File "C:\Users\home\AppData\Local\Programs\Python\Python38-32\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\home\AppData\Local\Programs\Python\Python38-32\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\home\Desktop\venv\lib\site-packages\magicwand\__main__.py", line 23, in <module>
    window.show()
  File "C:\Users\home\Desktop\venv\lib\site-packages\magicwand\__init__.py", line 84, in show
    self._update()
  File "C:\Users\home\Desktop\venv\lib\site-packages\magicwand\__init__.py", line 80, in _update
    cv.displayStatusBar(self.name, ", ".join((meanstr, stdstr)))
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:567: error: (-213:The function/feature is not implemented) The library is compiled without QT support in function 'cv::displayStatusBar'

I checked for solutions to the problem but I couldn't find one.我检查了问题的解决方案,但找不到。 I also have already installed opencv-python through pip.我也已经通过 pip 安装了 opencv-python。

Any help would be appreciated, thanks!任何帮助将不胜感激,谢谢!

Installing opencv from conda fixed this problem for me:conda安装opencv为我解决了这个问题:

conda install -c conda-forge opencv

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM