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

(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)

Administrator
avatar
加入于:
帖子: 4655
声望: 266
  1. 官方只支持了ubuntu
  2. 不要用virtualenv

一定要用上面两个的话就要自己慢慢折腾了。。。比如跳转查下libta_lib.so.0文件为何没有成功编译

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

沪公网安备 31011502017034号