无法在Microsoft Visual Studio中安装TA-lib python问题

时间:2017-02-06 08:35:27

标签: python windows quantitative-finance zipline ta-lib

尝试做一个简单的pip安装TA-lib但是在安装Microsoft Visual Studio 14时遇到错误但仍然存在问题。

错误代码http://pastebin.com/h4jHWd1m

我尝试手动安装它,但得到了这个:

 setup.py:77: UserWarning: Cannot find ta-lib library, installation may fail.
      warnings.warn('Cannot find ta-lib library, installation may fail.')
    running install
    running build
    running build_py
    running build_ext
    building 'talib.common' extension
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Python36-32\lib\site-packages\numpy\core\include -Ic:\ta-lib\c\include -IC:\Python36-32\include -IC:\Python36-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tctalib/common.c /Fobuild\temp.win32-3.6\Release\talib/common.obj
    common.c
    talib/common.c(240): fatal error C1083: Cannot open include file: 'ta_libc.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2

问题似乎是一样的,任何想法?

1 个答案:

答案 0 :(得分:1)

解决。我必须下载this并解压缩到c:\

请参阅https://github.com/mrjbq7/ta-lib#dependencies