Error installing TA-Lib for Anaconda

I am running Python 3.4.1 Anaconda 2.1.0 on Win7 x64. The version of Cython is 0.21, and I can confirm that it is installed.

I am trying to install the TA-lib wrapper with the easy_install TA-lib command.

I already have a ta-lib folder in c:\ta-lib .

This is a complete listing of what is going on:

easy_install ta-lib
Search ta-lib
Reading https://pypi.python.org/simple/ta-lib/
Reading http://github.com/mrjbq7/ta-lib
Reading https://github.com/mrjbq7/ta-lib/releases
Best Opinion: TA-Lib 0.4.8
Download https://github.com/mrjbq7/ta-lib/archive/TA_Lib-0.4.8.zip
Processing TA_Lib-0.4.8.zip
Record C: \ Users \ ULYATES \ AppData \ Local \ Temp \ easy_install-mxydk494 \ ta-lib-TA_Lib-0.4.8 \ setup.cfg
Run ta-lib-TA_Lib-0.4.8 \ setup.py -q bdist_egg --dist-dir C: \ Users \ ULYATES \ AppData \ Local \ Temp \ easy_install-mxydk494 \ ta-lib-TA_Lib-0.4.8 \ egg -dist-tmp-dvmbdia1

C: / anaconda3 / MinGW / bin /../ Library / GCC / x86_64-W64-mingw32 / 4.7.0 /../../../../ x86_64-W64-mingw32 / bin / L.D. .exe: skip incompatible c: \ ta-lib \ c \ lib / ta_libc_cdr.lib when searching for -lta_libc_cdr C: / anaconda3 / MinGW / bin /../ Library / GCC / x86_64-w64-mingw32 / 4.7.0 /. ./../../../x86_64-w64-mingw32/ben/ld.exe: skipping incompatible c: \ ta-lib \ c \ lib / ta_libc_cdr.lib when searching for -lta_libc_cdr C: / anaconda3 / MinGW / bin /../ Library / GCC / x86_64-w64-mingw32 / 4.7.0 /../../../../ x86_64-w64-mingw32 / bin / ld.exe: skipping incompatible c: \ ta- lib \ c \ lib \ ta_libc_cdr.lib when searching for -lta_libc_cdr C: / anaconda3 / MinGW / bin /../ Library / GCC / x86_64-w64-mingw32 / 4.7.0 /../../../ .. /x86_64-w64-mingw32/ben/ld.exe: cannot find -lta_libc_cdrcollect2.exe: error: ld returned 1 exit status Error: installation of script completed with error: command 'C: \ Anaconda3 \ Scripts \ gcc.bat' failed with exit status 1

+6
source share
2 answers

I suffered from this for the last few days, and almost immediately after I posted it, I realized it.

I just installed TA_Lib-0.4.8-cp34-none-win_amd64.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/

Now everything works fine.

Hope this helps someone.

Hello,

Sean

+12
source

Not sure where you got your ta-lib assembly, but I assume you are using the binary from sourceforge in the ta-lib-0.4.0-msvc.zip file. This is 32-bit. You will need to use 32-bit python / anaconda to use it.

+1
source

Source: https://habr.com/ru/post/981430/


All Articles