完美解决QObject::moveToThread...Cannot move to target thread

安装所需包:

pip install -i https://pypi.tuna.tsinghua.edu.cn/sample pyqt5
sudo pip uninstall opencv-python
sudo apt-get install libopencv-dev python-opencv

安装libqt5x11extras5
sudo apt-get install libqt5x11extras5
如果已经安装了仍然报错,那就卸载之后再使用以上命令重新安装
卸载命令:sudo apt-get remove libqt5x11extras5
完美解决QObject::moveToThread...Cannot move to target thread_第1张图片

你可能感兴趣的:(Python,人工智能,linux)