以下是报错信息
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#
|