我正在尝试在Ubuntu中安装Python Ta-Lib,但是当我运行时:
pip install TA-Lib
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-YfCSFn/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-swmI7D-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-YfCSFn/TA-Lib/
Run Code Online (Sandbox Code Playgroud)
我已经安装了:
sudo apt-get install python3-dev
Run Code Online (Sandbox Code Playgroud)
并安装了Ta-lib
我怎样才能解决这个问题?
pip install talib
Collecting talib
Using cached https://files.pythonhosted.org/packages/1a/80/3492aa3065d7d81a6c51db78920108f84fbe19c4e2740f6bbb83d42f77a4/talib-0.1.1.tar.gz
Building wheels for collected packages: talib
Building wheel for talib (setup.py) ... error
ERROR: Failed building wheel for talib
Running setup.py clean for talib
Failed to build talib
Installing collected packages: talib
Running setup.py install for talib ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-kj3hzgy2/talib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-kj3hzgy2/talib/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-utpwvbtw/install-record.txt --single-version-externally-managed --compile Check the logs for …Run Code Online (Sandbox Code Playgroud)