VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 50
声望: 1

Traceback (most recent call last):
File "d:\vn230\lib\site-packages\vnstation\cli.py", line 95, in run_trader
main_window = TraderMainWindow(main_engine, event_engine)
File "d:\vn230\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 48, in init
self.init_ui()
File "d:\vn230\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 55, in init_ui
self.init_menu()
File "d:\vn230\lib\site-packages\vnpy\trader\ui\mainwindow.py", line 113, in init_menu
ui_module = import_module(app.app_module + ".ui")
File "d:\vn230\lib\importlib__init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "d:\vn230\lib\site-packages\vnpy\app\option_master\ui\
init.py", line 1, in <module>
from .widget import OptionManager
File "d:\vn230\lib\site-packages\vnpy\app\option_master\ui\widget.py", line 17, in <module>
from .chart import OptionVolatilityChart, ScenarioAnalysisChart
File "d:\vn230\lib\site-packages\vnpy\app\option_master\ui\chart.py", line 13, in <module>
import matplotlib
File "d:\vn230\lib\site-packages\matplotlib\
init.py", line 157, in <module>
_check_versions()
File "d:\vn230\lib\site-packages\matplotlib\
init.py", line 142, in _check_versions
from . import ft2font
ImportError: cannot import name 'ft2font' from 'matplotlib' (d:\vn230\lib\site-packages\matplotlib\
init__.py)

不知道是不是安装其它库的时候,把matplotlib原库修改了

Member
avatar
加入于:
帖子: 5055
声望: 305

可以试试pip install matplotlib --force-reinstall

Member
avatar
加入于:
帖子: 50
声望: 1

xiaohe wrote:

可以试试pip install matplotlib --force-reinstall

Looking in indexes: https://pypi.douban.com/simple
Collecting matplotlib
Downloading https://pypi.doubanio.com/packages/ec/f2/536de9d6eb75b053ea53944da62564499d5a3c786efe77f7075e35954782/matplotlib-3.4.2-cp37-cp37m-win_amd64.whl (7.1 MB)
|████████████████████████████████| 7.1 MB 2.2 MB/s
ERROR: Could not find a version that satisfies the requirement reinstall (from versions: none)
ERROR: No matching distribution found for reinstall

问题还是没有解决

Member
avatar
加入于:
帖子: 50
声望: 1

将matplotlib降级到3.2.1问题解决了

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

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】