【发布时间】:2018-01-21 02:35:33
【问题描述】:
我正在尝试在 Ubuntu 中安装 Python Ta-Lib,但是当我运行时:
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