(js_vnpy) [root@localhost bin]# /root/.virtualenvs/js_vnpy/bin/python3.7 /data/transmission_code/js_vnpy/examples/vn_trader/run.py
错误信息
Traceback (most recent call last):
File "/data/transmission_code/js_vnpy/examples/vn_trader/run.py", line 2, in <module>
from vnpy.app.manual_position_adjustment import ManualPositionAdjustmentApp
File "/root/.virtualenvs/js_vnpy/lib/python3.7/site-packages/vnpy/app/manual_position_adjustment/init.py", line 4, in <module>
from .engine import APP_NAME, ManualPositionAdjustmentEngine
File "/root/.virtualenvs/js_vnpy/lib/python3.7/site-packages/vnpy/app/manual_position_adjustment/engine.py", line 11, in <module>
from vnpy.app.cta_strategy import CtaTemplate
File "/root/.virtualenvs/js_vnpy/lib/python3.7/site-packages/vnpy/app/cta_strategy/init.py", line 6, in <module>
from vnpy.trader.utility import BarGenerator, ArrayManager
File "/root/.virtualenvs/js_vnpy/lib/python3.7/site-packages/vnpy/trader/utility.py", line 14, in <module>
import talib
File "/root/.virtualenvs/js_vnpy/lib/python3.7/site-packages/talib/init.py", line 52, in <module>
from ._ta_lib import (
ImportError: libta_lib.so.0: cannot open shared object file: No such file or directory
我明明安装好了TA-Lib
(js_vnpy) [root@localhost bin]# pip install TA-Lib
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Requirement already satisfied: TA-Lib in /root/.virtualenvs/js_vnpy/lib/python3.7/site-packages (0.4.19)