我使用的vnpy是2.0.8版本(2.0.9版本的也试过)的,安装的时候提示说我spyder3.3.6需要的pyqt版本小于5.13,而vnpy会给我安装5.14.1版本的pyqt5,从而导致不兼容。最后vnpy安装成功了,但是spyder却打不开了。所以后来我想着更新spyder到0.4.0以上的版本,但是一直出错。想问大家有遇到这种问题吗?我在cmd窗口运行spyder的时候,如下报错:
Traceback (most recent call last):
File "E:\Anaconda\lib\site-packages\qtpy\QtWebEngineWidgets.py", line 22, in <module>
from PyQt5.QtWebEngineWidgets import QWebEnginePage
ImportError: DLL load failed: 找不到指定的程序。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\Anaconda\Scripts\spyder-script.py", line 10, in <module>
sys.exit(main())
File "E:\Anaconda\lib\site-packages\spyder\app\start.py", line 186, in main
from spyder.app import mainwindow
File "E:\Anaconda\lib\site-packages\spyder\app\mainwindow.py", line 90, in <module>
from qtpy import QtWebEngineWidgets # analysis:ignore
File "E:\Anaconda\lib\site-packages\qtpy\QtWebEngineWidgets.py", line 26, in <module>
from PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'