解决:WSL2可视化opencv和pyqt冲突:QObject::moveToThread
通过降opencv-python 版本解决 QObject::moveToThread: Current thread (0x31e27f0) is not the object's thread (0x3346700). Cannot move to target thread.
·
目录
具体错误: QObject::moveToThread: Current thread (0x31e27f0) is not the object’s thread (0x3346700). Cannot move to target thread.
wsl2 pyqt5开发(用pip安装),opencv==4.10.0,好不容易pyqt5可以可视化,实在不想再动了,因此选择给opencv降级至4.3.0.36 / 4.1.2.30 (更推荐)。
以下是各个package的具体版本信息。
名称 | 版本 |
---|---|
WSL2 | ubuntu20.04 |
pyqt5 | 5.15.11 |
pyqt5-plugins | 5.15.9.2.3 |
pyqt5-qt5 | 5.15.2 |
pyqt5-sip | 12.15.0 |
pyqt5-tools | 5.15.9.3.3 |
opencv-python | 4.3.0.36 / 4.1.2.30 |
参考:
更多推荐
所有评论(0)