扫描二维码关注官方公众号
返回列表 发布新帖

[求助/问答] 请问各位资深玩家,谁能在dsm中顺利安装上ta-lib?

3827 3
发表于 2019-9-16 20:52:59 | 查看全部 阅读模式

来吧兄弟,一起玩一起讨论!

您需要 登录 才可以下载或查看,没有账号?注册

×
由于需要计算大量的数据,ta-lib插件少不了,但是我尝试在dsm6.1.7-15284中安装ta-lib,死活安装不上
有没有人成功的安上过这个插件,求教该怎样才能安装上

我需要python3环境下调用,先装了群晖套件里自带的python3,然后装easy install之类的,装完pip以后全部使用python3 -m pip install XXXXX命令安装的

到了talib就死活装不上去,套件中加装了ipkgui,打开安装了gcc也还是装不上talib

到底是什么原因造成的?

评论3

xxadVIP 发表于 2019-9-16 20:55:56 | 查看全部
以下是报错信息

ash-4.3# python3 -m pip install ta-lib
Collecting ta-lib
  Using cached https://files.pythonhosted.org/p ... A-Lib-0.4.17.tar.gz
Requirement already satisfied: numpy in /volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages (from ta-lib) (1.17.2)
Building wheels for collected packages: ta-lib
  Building wheel for ta-lib (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-22hxjr54/ta-lib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-22hxjr54/ta-lib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-bu79ecip --python-tag cp35
       cwd: /tmp/pip-install-22hxjr54/ta-lib/
  Complete output (24 lines):
  /tmp/pip-install-22hxjr54/ta-lib/setup.py:79: UserWarning: Cannot find ta-lib library, installation may fail.
    warnings.warn('Cannot find ta-lib library, installation may fail.')
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.5
  creating build/lib.linux-x86_64-3.5/talib
  copying talib/test_stream.py -> build/lib.linux-x86_64-3.5/talib
  copying talib/test_func.py -> build/lib.linux-x86_64-3.5/talib
  copying talib/test_data.py -> build/lib.linux-x86_64-3.5/talib
  copying talib/test_pandas.py -> build/lib.linux-x86_64-3.5/talib
  copying talib/stream.py -> build/lib.linux-x86_64-3.5/talib
  copying talib/__init__.py -> build/lib.linux-x86_64-3.5/talib
  copying talib/deprecated.py -> build/lib.linux-x86_64-3.5/talib
  copying talib/test_abstract.py -> build/lib.linux-x86_64-3.5/talib
  copying talib/abstract.py -> build/lib.linux-x86_64-3.5/talib
  running build_ext
  building 'talib._ta_lib' extension
  creating build/temp.linux-x86_64-3.5
  creating build/temp.linux-x86_64-3.5/talib
  /usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ccache-gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DSYNO_FIX_FLAG_BUG -DOPENSSL_NO_SSL3 -DOPENSSL_NO_SSL2 -DSYNOPLAT_F_X86_64 -O2 -include /usr/syno/include/platformconfig.h -DSYNO_ENVIRONMENT -DBUILD_ARCH=64 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -DSDK_VER_MIN_REQUIRED=600 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -Wno-unused-result -fPIC -I/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/numpy/core/include -I/usr/include -I/usr/local/include -I/opt/include -I/opt/local/include -I/volume1/@appstore/py3k/usr/local/include/python3.5m -c talib/_ta_lib.c -o build/temp.linux-x86_64-3.5/talib/_ta_lib.o
  unable to execute '/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ccache-gcc': No such file or directory
  error: command '/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ccache-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for ta-lib
  Running setup.py clean for ta-lib
Failed to build ta-lib
Installing collected packages: ta-lib
  Running setup.py install for ta-lib ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-22hxjr54/ta-lib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-22hxjr54/ta-lib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-882k73va/install-record.txt --single-version-externally-managed --compile
         cwd: /tmp/pip-install-22hxjr54/ta-lib/
    Complete output (24 lines):
    /tmp/pip-install-22hxjr54/ta-lib/setup.py:79: UserWarning: Cannot find ta-lib library, installation may fail.
      warnings.warn('Cannot find ta-lib library, installation may fail.')
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.5
    creating build/lib.linux-x86_64-3.5/talib
    copying talib/test_stream.py -> build/lib.linux-x86_64-3.5/talib
    copying talib/test_func.py -> build/lib.linux-x86_64-3.5/talib
    copying talib/test_data.py -> build/lib.linux-x86_64-3.5/talib
    copying talib/test_pandas.py -> build/lib.linux-x86_64-3.5/talib
    copying talib/stream.py -> build/lib.linux-x86_64-3.5/talib
    copying talib/__init__.py -> build/lib.linux-x86_64-3.5/talib
    copying talib/deprecated.py -> build/lib.linux-x86_64-3.5/talib
    copying talib/test_abstract.py -> build/lib.linux-x86_64-3.5/talib
    copying talib/abstract.py -> build/lib.linux-x86_64-3.5/talib
    running build_ext
    building 'talib._ta_lib' extension
    creating build/temp.linux-x86_64-3.5
    creating build/temp.linux-x86_64-3.5/talib
    /usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ccache-gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DSYNO_FIX_FLAG_BUG -DOPENSSL_NO_SSL3 -DOPENSSL_NO_SSL2 -DSYNOPLAT_F_X86_64 -O2 -include /usr/syno/include/platformconfig.h -DSYNO_ENVIRONMENT -DBUILD_ARCH=64 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -DSDK_VER_MIN_REQUIRED=600 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -O2 -Wno-unused-result -fPIC -I/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/numpy/core/include -I/usr/include -I/usr/local/include -I/opt/include -I/opt/local/include -I/volume1/@appstore/py3k/usr/local/include/python3.5m -c talib/_ta_lib.c -o build/temp.linux-x86_64-3.5/talib/_ta_lib.o
    unable to execute '/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ccache-gcc': No such file or directory
    error: command '/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ccache-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-22hxjr54/ta-lib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-22hxjr54/ta-lib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-882k73va/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
ash-4.3#


回复 点赞

使用道具 举报

hhthzdLv.8 发表于 2019-9-17 12:11:31 | 查看全部
多谢分享,支持下载
回复 点赞

使用道具 举报

xxadVIP 发表于 2019-9-18 17:26:51 | 查看全部
没人知道怎么装嘛?
回复 点赞

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则

淘宝小店

邀请码

VIP会员

微信客服

公众号

微信群

投诉/建议联系

support@gebi1.cn

未经授权禁止转载,复制和建立镜像,
如有违反,追究法律责任
  • 关注公众号
  • 添加微信客服
Copyright © 2001-2024 隔壁网 版权所有 All Rights Reserved. 粤ICP备14056481号-1
关灯 在本版发帖
扫一扫添加微信客服
返回顶部
快速回复 返回顶部 返回列表