vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 1
声望: 0

23:07 $ python3 run.py

Traceback (most recent call last):
File "run.py", line 5, in <module>
from vnpy.trader.ui import MainWindow, create_qapp
File "/usr/local/lib/python3.6/dist-packages/vnpy/trader/ui/init.py", line 10, in <module>
from .mainwindow import MainWindow
File "/usr/local/lib/python3.6/dist-packages/vnpy/trader/ui/mainwindow.py", line 27, in <module>
from .editor import CodeEditor
File "/usr/local/lib/python3.6/dist-packages/vnpy/trader/ui/editor.py", line 4, in <module>
from PyQt5 import QtWidgets, Qsci, QtGui
ImportError: cannot import name 'Qsci'

请问是什么问题

Member
avatar
加入于:
帖子: 186
声望: 23

前面有帖子写了

Member
avatar
加入于:
帖子: 2
声望: 0

曲嘉宝 wrote:

23:07 $ python3 run.py

Traceback (most recent call last):
File "run.py", line 5, in <module>
from vnpy.trader.ui import MainWindow, create_qapp
File "/usr/local/lib/python3.6/dist-packages/vnpy/trader/ui/init.py", line 10, in <module>
from .mainwindow import MainWindow
File "/usr/local/lib/python3.6/dist-packages/vnpy/trader/ui/mainwindow.py", line 27, in <module>
from .editor import CodeEditor
File "/usr/local/lib/python3.6/dist-packages/vnpy/trader/ui/editor.py", line 4, in <module>
from PyQt5 import QtWidgets, Qsci, QtGui
ImportError: cannot import name 'Qsci'

请问是什么问题

我也遇到这个问题,请问解决了吗?

Member
avatar
加入于:
帖子: 2
声望: 0

山行 wrote:

曲嘉宝 wrote:

23:07 $ python3 run.py

Traceback (most recent call last):
File "run.py", line 5, in <module>
from vnpy.trader.ui import MainWindow, create_qapp
File "/usr/local/lib/python3.6/dist-packages/vnpy/trader/ui/init.py", line 10, in <module>
from .mainwindow import MainWindow
File "/usr/local/lib/python3.6/dist-packages/vnpy/trader/ui/mainwindow.py", line 27, in <module>
from .editor import CodeEditor
File "/usr/local/lib/python3.6/dist-packages/vnpy/trader/ui/editor.py", line 4, in <module>
from PyQt5 import QtWidgets, Qsci, QtGui
ImportError: cannot import name 'Qsci'

请问是什么问题

我也遇到这个问题,请问解决了吗?

问题解决了,先卸载 PyQt5和QScintilla 再重新安装一次就可以了
具体如下:
pip uninstall pyqt5
pip uninstall QScintilla
pip install pyqt5
pip install QScintilla

© 2015-2019 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号-3

沪公网安备 31011502017034号