问题描述
Could not import backend for traitsui. Make sure you have a suitable UI toolkit like PyQt/PySide or wxPython installed.
在尝试sfm算法的时候,因为opencv_contrib_python版本问题,想要anaconda再重新创建一个虚拟环境,就遇到了这个问题,问题出在调用mayavi的函数的时候,这是因为mayavi匹配的问题。
解决方案
我用的是mayavi-4.7.1+vtk82-cp37-cp37m-win_amd64这个版本,安装Qtpy没什么用,后来装了PySide才可以继续使用。版本为PySide2-5.15.0-5.15.0_1-cp35.cp36.cp37.cp38-none-win_amd64,这个其实只要看一下python版本就可以了,问题不是很大,中间可能会遇到shiboken2的包出错,可以在这个网站进行相应版本的下载。