pandas 在 Anaconda 下的 windows 10 中安装 ta-lib

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/35974075/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 00:51:58  来源:igfitidea点击:

install ta-lib in windows 10 under Anaconda

pythonpandasta-lib

提问by user6057786

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

我只是尝试使用 anaconda 在 Windows 10 中安装 ta-lib conda install -c r2d2 ta-lib,当我import talib在 ipython notebook 中安装时,我得到:

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

回答by Youan Wang

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

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

conda install -c quantopian ta-lib=0.4.9

回答by Ish Beniwal

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

我也在使用 Windows 10。这些命令对我有用:

conda install python=2.7.13

then:

然后:

conda install -c quantopian ta-lib=0.4.9