Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error installing TA-Lib for Anaconda

I am running Python 3.4.1 Anaconda 2.1.0 on Win7 x64. Cython version is 0.21 and I can confirm it has been installed.

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

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

This is the full print out of what happens:

easy_install ta-lib
Searching for 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 match: TA-Lib 0.4.8
Downloading https://github.com/mrjbq7/ta-lib/archive/TA_Lib-0.4.8.zip
Processing TA_Lib-0.4.8.zip
Writing C:\Users\ULYATES\AppData\Local\Temp\easy_install-mxydk494\ta-lib-TA_Lib-0.4.8\setup.cfg
Running 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/../lib/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/../lib/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/../lib/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/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lta_libc_cdrcollect2.exe: error: ld returned 1 exit status error: Setup script exited with error: command 'C:\Anaconda3\Scripts\gcc.bat' failed with exit status 1

like image 448
Sean U Avatar asked Jan 23 '15 04:01

Sean U


People also ask

How do you install a Talib Anaconda?

To install Ta-Lib, you will first install Anaconda and then open the Anaconda prompt. You would then write the code, “conda install -c conda-forge ta-lib”, and press the “Enter” key. After a few moments, the ta-lib package will be installed. That's all there is to it.

How do I install Talib on Windows?

Step 1: Dependencies > Windows > downloaded the zip file. Step 2: extracted to C:\ta-lib, as per their webpage. Step 3: VS Code > terminal: pip install TA-Lib.


1 Answers

I have plagued by this for the past few days, and almost immediately after I posted this I figured it out.

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

now everything works great.

Hope this helps someone.

Regards,

Sean

like image 147
Sean U Avatar answered Oct 14 '22 01:10

Sean U