gpt4 book ai didi

python - 无法在 Ubuntu 上安装 TA-Lib

转载 作者:行者123 更新时间:2023-11-28 19:31:39 28 4
gpt4 key购买 nike

我正在尝试在 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

我该如何解决这个问题?

最佳答案

能够加载 python3。

步骤:

  1. http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz下载

  2. 解压 tar -xvf ta-lib-0.4.0-src.tar.gz

  3. cd/../ta-lib

  4. ./configure --prefix=/usr

  5. 制作

  6. sudo make install

  7. sudo apt upgrade

  8. pip install ta-libpip install TA-Lib

  9. 检查 导入talib

关于python - 无法在 Ubuntu 上安装 TA-Lib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45406213/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com