TA-Lib安装错误 [英] TA-Lib Install Error

查看:1086
本文介绍了TA-Lib安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用pip在Debian Jessie上安装TA-Lib。但是我遇到以下错误:

  #includeta-lib / ta_defs.h
^
编译已终止。
error:command'x86_64-linux-gnu-gcc'failed with exit status 1

这只是一点点的错误。我试过



此后,您可以输入:pip install ta-lib,Successfully!


I am trying to install TA-Lib on Debian Jessie using pip. However I am encountering the following error:

#include "ta-lib/ta_defs.h"
                            ^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

That is just a small bit of the error. I have tried as this post mentioned installing the following packages:

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

without much luck. I am using python 3.4 on a VPS if that makes a difference. Any ideas on how I can solve this issue? Thanks

解决方案

first, you should download the ta-lib at link: http://ta-lib.org/hdr_dw.html. This is a c lib .

$ untar and cd
$ ./configure --prefix=/usr
$ make
$ sudo make install

After this, you can input : pip install ta-lib , Successfully!

这篇关于TA-Lib安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆