简体   繁体   中英

install ta-lib in windows 10 under Anaconda

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

我也在使用Windows 10 ,这个命令对我来说很好用:

conda install -c quantopian ta-lib=0.4.9

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM