我正在尝试安装TA-Lib的Debian杰西使用pip。然而,我遇到了以下错误:
#include "ta-lib/ta_defs.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
这只是一小部分错误。正如this post提到的那样,我已经尝试过安装以下软件包:
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev
sudo easy_install greenlet
sudo easy_install gevent
没有太多的运气。我在VPS上使用python3.4,如果这有什么不同的话。关于如何解决这个问题,有什么想法吗?谢谢
发布于 2017-02-14 13:05:07
首先,您应该从以下链接下载ta-lib:http://ta-lib.org/hdr_dw.html .This is a c lib...
$ untar and cd
$ ./configure --prefix=/usr
$ make
$ sudo make install
在此之后,您可以输入: pip install ta-lib,成功!
发布于 2018-06-02 15:05:19
你可以尝试这样做。/configure --prefix=$VIRTUALENV,这会在你的虚拟环境的include bin和lib文件夹中创建文件,但是在随后运行pip3安装TA-Lib之后,仍然会出现和以前一样的错误,请让我知道!:)
https://stackoverflow.com/questions/40275234
复制相似问题