我试图在Ubuntu安装Python的Ta-Lib的,但是当我运行安装TA-库:无法在Ubuntu
pip install TA-Lib
我得到这个错误:
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/
我已经安装:
sudo apt-get install python3-dev
和安装的Ta-lib中
我该如何解决这个问题?
'/ usr/bin/python'通常意味着python2。您可能需要'sudo apt install python-dev' –