install ta-lib in windows 10 under Anaconda

user6057786 picture user6057786 · Mar 13, 2016 · Viewed 7.6k times · Source

I just tried to install ta-lib in windows 10 using anaconda conda install -c r2d2 ta-lib and when I do import talib in ipython notebook, I get:

ImportError Traceback (most recent call last)
<ipython-input-1-9bc7b4202a1f> in <module>()
----> 1 import talib

C:\Anaconda2\lib\site-packages\talib\__init__.py in <module>()
      2 import atexit
      3 
----> 4 from . import common
      5 from . import abstract
      6 from .common import MA_Type, __ta_version__

ImportError: cannot import name common

Answer

Youan Wang picture Youan Wang · Dec 4, 2016

I'm also using Windows 10, this command worked fine for me:

conda install -c quantopian ta-lib=0.4.9