Traceback (most recent call last):
File "run.py", line 2, in <module>
from vnpy.event import EventEngine
ModuleNotFoundError: No module named 'vnpy'
请问怎么解决,感谢!
您好,是这样的,我前面下载了 python3.7 版本的anaconda 和 vscode 和 手动安装vnpy2.1.2版本,已经可以正常运行,今天想打开spyder 打不开,按照网上教程在cmd命令输入了conda install pyqt==5.6,下载了这个。现在spyder打开了,但是vnpy打不开了。。。错误原因是这个:
PS C:\Users\Administrator\vnpy-2.1.2\examples\vn_trader> python run.py
Traceback (most recent call last):
File "run.py", line 5, in <module>
from vnpy.trader.ui import MainWindow, create_qapp
File "C:\Users\Administrator\Anaconda3\lib\site-packages\vnpy\trader\ui__init__.py", line 11, in <module>
from .mainwindow import MainWindow
File "C:\Users\Administrator\Anaconda3\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 28, in <module>
from .editor import CodeEditor
File "C:\Users\Administrator\Anaconda3\lib\site-packages\vnpy\trader\ui\editor.py", line 4, in <module>
from PyQt5 import QtWidgets, Qsci, QtGui
ImportError: DLL load failed: 找不到指定的模块。
请问这个该怎么解决。。。。
xiaohe
wrote:
https://download.vnpy.com/vnstudio-2.1.6.exe
chibuikem
wrote:
安装了VN Studio,然后想用vs code调试策略。但是,在vn studio中找不到run.py。是要下载GitHub的code 吗?下载后,放在哪个路径下?谢谢
https://github.com/vnpy/vnpy/blob/master/examples/vn_trader/run.py