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

ERROR: Command errored out with exit status 1:
command: /home/ubuntu/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-c5e9aqkt/ta-lib/setup.py'"'"'; file='"'"'/tmp/pip-install-c5e9aqkt/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-_5guy_7r/install-record.txt --single-version-externally-managed --compile
cwd: /tmp/pip-install-c5e9aqkt/ta-lib/
Complete output (26 lines):
/tmp/pip-install-c5e9aqkt/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.7
creating build/lib.linux-x86_64-3.7/talib
copying talib/test_stream.py -> build/lib.linux-x86_64-3.7/talib
copying talib/abstract.py -> build/lib.linux-x86_64-3.7/talib
copying talib/stream.py -> build/lib.linux-x86_64-3.7/talib
copying talib/test_func.py -> build/lib.linux-x86_64-3.7/talib
copying talib/test_abstract.py -> build/lib.linux-x86_64-3.7/talib
copying talib/init.py -> build/lib.linux-x86_64-3.7/talib
copying talib/test_pandas.py -> build/lib.linux-x86_64-3.7/talib
copying talib/deprecated.py -> build/lib.linux-x86_64-3.7/talib
copying talib/test_data.py -> build/lib.linux-x86_64-3.7/talib
running build_ext
skipping 'talib/_ta_lib.c' Cython extension (up-to-date)
building 'talib._ta_lib' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/talib
gcc -pthread -B /home/ubuntu/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ubuntu/anaconda3/lib/python3.7/site-packages/numpy/core/include -I/usr/include -I/usr/local/include -I/opt/include -I/opt/local/include -I/home/ubuntu/anaconda3/include/python3.7m -c talib/_ta_lib.c -o build/temp.linux-x86_64-3.7/talib/_ta_lib.o
talib/_ta_lib.c:526:28: fatal error: ta-lib/ta_defs.h: No such file or directory
compilation terminated.

error: command 'gcc' failed with exit status 1
----------------------------------------

ERROR: Command errored out with exit status 1: /home/ubuntu/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-c5e9aqkt/ta-lib/setup.py'"'"'; file='"'"'/tmp/pip-install-c5e9aqkt/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-_5guy_7r/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

Administrator
avatar
加入于:
帖子: 2146
声望: 99

请照着vnpy-community公众号的Ubuntu安装教程,先安装相关的Linux编译工具(gcc等)

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