安装TA-Lib时报错:ubuntu****, Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='

使用pip install TA-Lib 时报错:

 ERROR: Complete output from command /usr/bin/python3 -u -c ‘import setuptools, tokenize;__file__=‘"‘"‘/tmp/pip-install-afeznd8w/TA-Lib/setup.py‘"‘"‘;f=getattr(tokenize, ‘"‘"‘open‘"‘"‘, open)(__file__);code=f.read().replace(‘"‘"‘\r\n‘"‘"‘, ‘"‘"‘\n‘"‘"‘);f.close();exec(compile(code, __file__, ‘"‘"‘exec‘"‘"‘))‘ bdist_wheel -d /tmp/pip-wheel-q0lugo3l --python-tag cp35:
  ERROR: /tmp/pip-install-afeznd8w/TA-Lib/setup.py:79: UserWarning: Cannot find ta-lib library, installation may fail.
    warnings.warn(‘Cannot find ta-lib library, installation may fail.‘)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.5
  creating build/lib.linux-x86_64-3.5/talib
  copying talib/test_data.py -> build/lib.linux-x86_64-3.5/talib
  copying talib/test_func.py -> build/lib.linux-x86_64-3.5/talib
  copying talib/abstract.py -> build/lib.linux-x86_64-3.5/talib
  copying talib/test_abstract.py -> build/lib.linux-x86_64-3.5/talib
  copying talib/test_stream.py -> build/lib.linux-x86_64-3.5/talib
  copying talib/__init__.py -> build/lib.linux-x86_64-3.5/talib
  copying talib/stream.py -> build/lib.linux-x86_64-3.5/talib
  copying talib/deprecated.py -> build/lib.linux-x86_64-3.5/talib
  copying talib/test_pandas.py -> build/lib.linux-x86_64-3.5/talib
  running build_ext
  building ‘talib._ta_lib‘ extension
  creating build/temp.linux-x86_64-3.5
  creating build/temp.linux-x86_64-3.5/talib
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.5/dist-packages/numpy/core/include -I/usr/include -I/usr/local/include -I/opt/include -I/opt/local/include -I/usr/include/python3.5m -c talib/_ta_lib.c -o build/temp.linux-x86_64-3.5/talib/_ta_lib.o
  talib/_ta_lib.c:526:28: fatal error: ta-lib/ta_defs.h: 没有那个文件或目录
  compilation terminated.
  error: command ‘x86_64-linux-gnu-gcc‘ failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for TA-Lib

  

解决方案:

  1. sudo apt-get install libssl-dev libffi-dev python-dev build-essential libxml2-dev libxslt1-dev
  2.  sudo pip install TA-Lib

安装TA-Lib时报错:ubuntu****, Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='

原文地址:https://www.cnblogs.com/angener/p/10796858.html

时间: 2024-10-06 14:50:51

安装TA-Lib时报错:ubuntu****, Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='的相关文章

centos65安装pg935时报错: jade: Command not found

centos65安装pg935时报错:  jade: Command not found 1 [[email protected] postgresql-9.3.5]# ./configure --prefix=/opt/pgsql9.3.5 --with-pgport=1949 --with-perl --with-tcl --with-python --with-openssl --with-pam --without-ldap --with-libxml --with-libxslt --

php编译安装执行make时报错: make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1

php编译安装执行make时报错,报错如下: /bin/sh /root/php-5.6.31/libtool --silent --preserve-dup-deps --mode=compile cc -I/root/php-5.6.31/ext/fileinfo/libmagic -Iext/fileinfo/ -I/root/php-5.6.31/ext/fileinfo/ -DPHP_ATOM_INC -I/root/php-5.6.31/include -I/root/php-5.6

安装vm tools--出错The path "/usr/bin/gcc" is not valid path to the gcc binary”

系统环境: ubuntu12.04 安装vm tools时出现如下问题 The path "/usr/bin/gcc" is not valid path to the gcc binary 解决方案: #cat /proc/version Linux version 3.2.0-29-generic ([email protected]) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #46-Ubuntu SMP Fri Ju

chkrootkit 编译报错的解决/usr/bin/ld: cannot find -lc

1:Centos6.5安装chkrootkit wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz tar xvf chkrootkit.tar.gz cd chkrootkit-0.51/ make sense报错如下: /usr/bin/ld: cannot find -lc collect2: ld returned 1 exit status make: *** [strings-static] Error 1 2:解决

IOS随笔-- Command /usr/bin/codesign failed with exit code 1

我今天遇见一个蛋疼的问题,因为本机上装有两个xcode ,分别是xcode5.1.1和xcode6.1,xcode5版本真机测试没一点问题?但是xcode6真机测试的时候问题来了编译不通过,Command /usr/bin/codesign failed with exit code 1 的错误. 于是开始了艰辛的查询工作,再查了多个资料后最终没有解决掉问题,心灰意冷啊! 出去抽了一支烟,整理下思路,回来把证书以及描述文件全部删掉 然后重新创建证书以及描述文件,重新配置,clean一下,运行..

解决apt-get安装软件包的时候遇到E: Sub-process /usr/bin/dpkg returned an error code (1)问题

在用apt-get安装软件包的时候遇到E: Sub-process /usr/bin/dpkg returned an error code (1)问题,解决方法如下: cd /var/lib/dpkg/ sudo mv info/ info_bak # 现将info文件夹更名 sudo mkdir info # 再新建一个新的info文件夹 sudo apt-get update # 更新 sudo apt-get -f install # 修复 sudo mv info/* info_bak

(转)Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPL

转自:http://blog.csdn.net/huashnag/article/details/9357517 Starting Oracle Universal Installer... Checking Temp space: must be greater than 80 MB. Actual 10115 MB Passed Checking swap space: must be greater than 150 MB. Actual 2047 MB Passed Checking m

Python——#!/usr/bin/env python与#!/usr/bin/python的区别——转载

转载自:http://blog.csdn.net/wh_19910525/article/details/8040494 作者:wh_19910525 脚本语言的第一行,目的就是指出,你想要你的这个文件中的代码用什么可执行程序去运行它,就这么简单 #!/usr/bin/python是告诉操作系统执行这个脚本的时候,调用/usr/bin下的python解释器:#!/usr/bin/env python这种用法是为了防止操作系统用户没有将python装在默认的/usr/bin路径里.当系统看到这一行

-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory

报错:-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory python多版本造成额问题 找不到python的路径 所以保持 -查找python#whereis pythonpython: /usr/bin/python /usr/bin/python2.4 /usr/lib/python2.4 /usr/local/bin/python2.7 /usr/local/bin/python