2

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
Kirk Beard
  • 9,569
  • 12
  • 43
  • 47
user6057786
  • 21
  • 1
  • 4

3 Answers3

3

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

conda install -c quantopian ta-lib=0.4.9
Matteo Baldi
  • 5,613
  • 10
  • 39
  • 51
Youan Wang
  • 94
  • 5
1

I'm also using Windows 10. These commands worked for me:

conda install python=2.7.13

then:

conda install -c quantopian ta-lib=0.4.9
Ryanas
  • 1,757
  • 3
  • 19
  • 36
0

Alternatively, you can open Conda Prompt (in order to install in the base environment of Conda), then you can also use PIP:

pip install pandas-ta

It works the same as conda command.

Kardi Teknomo
  • 1,375
  • 16
  • 24