python - 为 Anaconda 安装 TA-Lib 时出错

标签 python mingw anaconda ta-lib

我在 Win7 x64 上运行 Python 3.4.1 Anaconda 2.1.0。 Cython 版本是 0.21,我可以确认它已经安装。

我正在尝试通过命令 easy_install TA-lib 安装 TA-lib 包装器。

我已经在 c:\ta-lib 中有了 ta-lib 文件夹。

这是发生的事情的完整打印:

easy_install ta-lib
Searching for ta-lib
Reading https://pypi.python.org/simple/ta-lib/
Reading http://github.com/mrjbq7/ta-lib
Reading https://github.com/mrjbq7/ta-lib/releases
Best match: TA-Lib 0.4.8
Downloading https://github.com/mrjbq7/ta-lib/archive/TA_Lib-0.4.8.zip
Processing TA_Lib-0.4.8.zip
Writing C:\Users\ULYATES\AppData\Local\Temp\easy_install-mxydk494\ta-lib-TA_Lib-0.4.8\setup.cfg
Running ta-lib-TA_Lib-0.4.8\setup.py -q bdist_egg --dist-dir C:\Users\ULYATES\AppData\Local\Temp\easy_install-mxydk494\ta-lib-TA_Lib-0.4.8\egg-dist-tmp-dvmbdia1

c:/anaconda3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:\ta-lib\c\lib/ta_libc_cdr.lib when searching for -lta_libc_cdr c:/anaconda3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:\ta-lib\c\lib/ta_libc_cdr.lib when searching for -lta_libc_cdr c:/anaconda3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:\ta-lib\c\lib\ta_libc_cdr.lib when searching for -lta_libc_cdr c:/anaconda3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lta_libc_cdrcollect2.exe: error: ld returned 1 exit status error: Setup script exited with error: command 'C:\Anaconda3\Scripts\gcc.bat' failed with exit status 1

最佳答案

过去几天我一直被这个问题困扰,几乎在我发布这个之后我就想通了。

我刚刚从 http://www.lfd.uci.edu/~gohlke/pythonlibs/ 安装了 TA_Lib-0.4.8-cp34-none-win_amd64.whl

现在一切正常。

希望这对某人有帮助。

问候,

肖恩

关于python - 为 Anaconda 安装 TA-Lib 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28103010/

相关文章:

linux - 使用 makefile.in 将 linux 源代码编译为 windows 7

python - ValueError : Only call `softmax_cross_entropy_with_logits` with named arguments (labels=. .., logits=..., ...)

python - curses.wrapper() 不工作 [python]

python - 如何在ndarray中找到数字层的总和

python - 使用 AES-CFB 时 Go 和 Pycrypto 的不同结果

python - 如何在 cmake 中设置 python 版本 2.7.2?

c++ - 在 Windows 10 上使用 minGW 运行 SFML C++ 程序

python - 使用 CFFI 在 Fortran 中使用 Python 函数。 cffi 构建中的警告。我无法从控制台或文件中打印得到结果,但运行时没有错误

python - 在 ubuntu 上使用 Anaconda for python 3.4 安装 opencv

python - 带有 Visual Studio Code 的 Anaconda