Pip install talib ошибка

Frustratingly having a lot of difficult installing the TA-Lib package in python.

https://pypi.python.org/pypi/TA-Lib

I have read through all the forum posts I can find on this but no such luck for my particular problem..

Windows 10
Python 3.5.2
Anaconda 4.2.0
Cython 0.24.1
Microsoft Visual Studio 14.0

I have downloaded and extracted  ta-lib-0.4.0-msvc.zip to C:/TA-Lib
(common problems seem to be people not installing the underlying TA-Lib file http://www.ta-lib.org/hdr_dw.html)

If someone could help me solve this I would be very appreciative!

Using ‘pip install ta-lib’ I get the following:

C:\Users\Matt>pip install ta-lib
Collecting ta-lib
  Using cached TA-Lib-0.4.10.tar.gz
Building wheels for collected packages: ta-lib
  Running setup.py bdist_wheel for ta-lib ... error
  Complete output from command c:\users\matt\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Matt\\AppData\\Local\\Temp\\pip-build-vv02ktg_\\ta-lib\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\Matt\AppData\Local\Temp\tmpqstzmsgspip-wheel- --python-tag cp35:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.5
  creating build\lib.win-amd64-3.5\talib
  copying talib\deprecated.py -> build\lib.win-amd64-3.5\talib
  copying talib\test_abstract.py -> build\lib.win-amd64-3.5\talib
  copying talib\test_data.py -> build\lib.win-amd64-3.5\talib
  copying talib\test_func.py -> build\lib.win-amd64-3.5\talib
  copying talib\test_stream.py -> build\lib.win-amd64-3.5\talib
  copying talib\__init__.py -> build\lib.win-amd64-3.5\talib
  running build_ext
  skipping 'talib\common.c' Cython extension (up-to-date)
  building 'talib.common' extension
  creating build\temp.win-amd64-3.5
  creating build\temp.win-amd64-3.5\Release
  creating build\temp.win-amd64-3.5\Release\talib
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\matt\anaconda3\lib\site-packages\numpy\core\include -Ic:\ta-lib\c\include -Ic:\users\matt\anaconda3\include -Ic:\users\matt\anaconda3\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.win-amd64-3.5\Release\talib\common.obj
  common.c
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\ta-lib\c\lib /LIBPATH:c:\users\matt\anaconda3\libs /LIBPATH:c:\users\matt\anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" ta_libc_cdr.lib /EXPORT:PyInit_common build\temp.win-amd64-3.5\Release\talib\common.obj /OUT:build\lib.win-amd64-3.5\talib\common.cp35-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.lib
  common.obj : warning LNK4197: export 'PyInit_common' specified multiple times; using first specification
     Creating library build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.lib and object build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.exp
  common.obj : error LNK2001: unresolved external symbol TA_SetUnstablePeriod
  common.obj : error LNK2001: unresolved external symbol TA_Shutdown
  common.obj : error LNK2001: unresolved external symbol TA_Initialize
  common.obj : error LNK2001: unresolved external symbol TA_GetUnstablePeriod
  common.obj : error LNK2001: unresolved external symbol TA_GetVersionString
  build\lib.win-amd64-3.5\talib\common.cp35-win_amd64.pyd : fatal error LNK1120: 5 unresolved externals
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120

  ----------------------------------------
  Failed building wheel for ta-lib
  Running setup.py clean for ta-lib
Failed to build ta-lib
Installing collected packages: ta-lib
  Running setup.py install for ta-lib ... error
    Complete output from command c:\users\matt\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Matt\\AppData\\Local\\Temp\\pip-build-vv02ktg_\\ta-lib\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Matt\AppData\Local\Temp\pip-qxmjmn5m-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.5
    creating build\lib.win-amd64-3.5\talib
    copying talib\deprecated.py -> build\lib.win-amd64-3.5\talib
    copying talib\test_abstract.py -> build\lib.win-amd64-3.5\talib
    copying talib\test_data.py -> build\lib.win-amd64-3.5\talib
    copying talib\test_func.py -> build\lib.win-amd64-3.5\talib
    copying talib\test_stream.py -> build\lib.win-amd64-3.5\talib
    copying talib\__init__.py -> build\lib.win-amd64-3.5\talib
    running build_ext
    skipping 'talib\common.c' Cython extension (up-to-date)
    building 'talib.common' extension
    creating build\temp.win-amd64-3.5
    creating build\temp.win-amd64-3.5\Release
    creating build\temp.win-amd64-3.5\Release\talib
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\matt\anaconda3\lib\site-packages\numpy\core\include -Ic:\ta-lib\c\include -Ic:\users\matt\anaconda3\include -Ic:\users\matt\anaconda3\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.win-amd64-3.5\Release\talib\common.obj
    common.c
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\ta-lib\c\lib /LIBPATH:c:\users\matt\anaconda3\libs /LIBPATH:c:\users\matt\anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" ta_libc_cdr.lib /EXPORT:PyInit_common build\temp.win-amd64-3.5\Release\talib\common.obj /OUT:build\lib.win-amd64-3.5\talib\common.cp35-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.lib
    common.obj : warning LNK4197: export 'PyInit_common' specified multiple times; using first specification
       Creating library build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.lib and object build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.exp
    common.obj : error LNK2001: unresolved external symbol TA_SetUnstablePeriod
    common.obj : error LNK2001: unresolved external symbol TA_Shutdown
    common.obj : error LNK2001: unresolved external symbol TA_Initialize
    common.obj : error LNK2001: unresolved external symbol TA_GetUnstablePeriod
    common.obj : error LNK2001: unresolved external symbol TA_GetVersionString
    build\lib.win-amd64-3.5\talib\common.cp35-win_amd64.pyd : fatal error LNK1120: 5 unresolved externals
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120

    ----------------------------------------
Command "c:\users\matt\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Matt\\AppData\\Local\\Temp\\pip-build-vv02ktg_\\ta-lib\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Matt\AppData\Local\Temp\pip-qxmjmn5m-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Matt\AppData\Local\Temp\pip-build-vv02ktg_\ta-lib\

@yiugn

I tried to install ta-lib, but only to fail.

How can I solve this problem? Here goes my cmd windows.

C:\Users\yiugn_>pip install ta-lib
Collecting ta-lib
Using cached TA-Lib-0.4.10.tar.gz
Building wheels for collected packages: ta-lib
Running setup.py bdist_wheel for ta-lib … error
Complete output from command C:\Users\yiugn_\Anaconda3\python.exe -u -c «import setuptools, tokenize;file=’C:\Users\yiugn_\AppData\Local\Temp\pip-build-of4wiq6k\ta-lib\setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))» bdist_wheel -d C:\Users\yiugn_\AppData\Local\Temp\tmpq3fkuotfpip-wheel- —python-tag cp35:
C:\Users\yiugn_\Anaconda3\lib\site-packages\Cython\Distutils\old_build_ext.py:30: UserWarning: Cython.Distutils.old_build_ext does not properly handle dependencies and is deprecated.
«Cython.Distutils.old_build_ext does not properly handle dependencies «
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\talib
copying talib\deprecated.py -> build\lib.win-amd64-3.5\talib
copying talib\test_abstract.py -> build\lib.win-amd64-3.5\talib
copying talib\test_data.py -> build\lib.win-amd64-3.5\talib
copying talib\test_func.py -> build\lib.win-amd64-3.5\talib
copying talib\test_stream.py -> build\lib.win-amd64-3.5\talib
copying talib_init_.py -> build\lib.win-amd64-3.5\talib
running build_ext
skipping ‘talib\common.c’ Cython extension (up-to-date)
building ‘talib.common’ extension
creating build\temp.win-amd64-3.5
creating build\temp.win-amd64-3.5\Release
creating build\temp.win-amd64-3.5\Release\talib
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\yiugn_\Anaconda3\lib\site-packages\numpy\core\include -Ic:\ta-lib\c\include -IC:\Users\yiugn_\Anaconda3\include -IC:\Users\yiugn_\Anaconda3\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.win-amd64-3.5\Release\talib\common.obj
common.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\ta-lib\c\lib /LIBPATH:C:\Users\yiugn_\Anaconda3\libs /LIBPATH:C:\Users\yiugn_\Anaconda3\PCbuild\amd64 «/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64» «/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64» «/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64» ta_libc_cdr.lib /EXPORT:PyInit_common build\temp.win-amd64-3.5\Release\talib\common.obj /OUT:build\lib.win-amd64-3.5\talib\common.cp35-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.lib
common.obj : warning LNK4197: export ‘PyInit_common’ specified multiple times; using first specification
Creating library build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.lib and object build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.exp
common.obj : error LNK2001: unresolved external symbol TA_SetUnstablePeriod
common.obj : error LNK2001: unresolved external symbol TA_Shutdown
common.obj : error LNK2001: unresolved external symbol TA_Initialize
common.obj : error LNK2001: unresolved external symbol TA_GetUnstablePeriod
common.obj : error LNK2001: unresolved external symbol TA_GetVersionString
build\lib.win-amd64-3.5\talib\common.cp35-win_amd64.pyd : fatal error LNK1120: 5 unresolved externals
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe’ failed with exit status 1120


Failed building wheel for ta-lib
Running setup.py clean for ta-lib
Failed to build ta-lib
Installing collected packages: ta-lib
Running setup.py install for ta-lib … error
Complete output from command C:\Users\yiugn_\Anaconda3\python.exe -u -c «import setuptools, tokenize;file=’C:\Users\yiugn_\AppData\Local\Temp\pip-build-of4wiq6k\ta-lib\setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))» install —record C:\Users\yiugn_\AppData\Local\Temp\pip-heu3fbw7-record\install-record.txt —single-version-externally-managed —compile:
C:\Users\yiugn_\Anaconda3\lib\site-packages\Cython\Distutils\old_build_ext.py:30: UserWarning: Cython.Distutils.old_build_ext does not properly handle dependencies and is deprecated.
«Cython.Distutils.old_build_ext does not properly handle dependencies «
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\talib
copying talib\deprecated.py -> build\lib.win-amd64-3.5\talib
copying talib\test_abstract.py -> build\lib.win-amd64-3.5\talib
copying talib\test_data.py -> build\lib.win-amd64-3.5\talib
copying talib\test_func.py -> build\lib.win-amd64-3.5\talib
copying talib\test_stream.py -> build\lib.win-amd64-3.5\talib
copying talib_init_.py -> build\lib.win-amd64-3.5\talib
running build_ext
skipping ‘talib\common.c’ Cython extension (up-to-date)
building ‘talib.common’ extension
creating build\temp.win-amd64-3.5
creating build\temp.win-amd64-3.5\Release
creating build\temp.win-amd64-3.5\Release\talib
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\yiugn_\Anaconda3\lib\site-packages\numpy\core\include -Ic:\ta-lib\c\include -IC:\Users\yiugn_\Anaconda3\include -IC:\Users\yiugn_\Anaconda3\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.win-amd64-3.5\Release\talib\common.obj
common.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\ta-lib\c\lib /LIBPATH:C:\Users\yiugn_\Anaconda3\libs /LIBPATH:C:\Users\yiugn_\Anaconda3\PCbuild\amd64 «/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64» «/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64» «/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64» ta_libc_cdr.lib /EXPORT:PyInit_common build\temp.win-amd64-3.5\Release\talib\common.obj /OUT:build\lib.win-amd64-3.5\talib\common.cp35-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.lib
common.obj : warning LNK4197: export ‘PyInit_common’ specified multiple times; using first specification
Creating library build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.lib and object build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.exp
common.obj : error LNK2001: unresolved external symbol TA_SetUnstablePeriod
common.obj : error LNK2001: unresolved external symbol TA_Shutdown
common.obj : error LNK2001: unresolved external symbol TA_Initialize
common.obj : error LNK2001: unresolved external symbol TA_GetUnstablePeriod
common.obj : error LNK2001: unresolved external symbol TA_GetVersionString
build\lib.win-amd64-3.5\talib\common.cp35-win_amd64.pyd : fatal error LNK1120: 5 unresolved externals
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe’ failed with exit status 1120

----------------------------------------

Command «C:\Users\yiugn_\Anaconda3\python.exe -u -c «import setuptools, tokenize;file=’C:\Users\yiugn_\AppData\Local\Temp\pip-build-of4wiq6k\ta-lib\setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))» install —record C:\Users\yiugn_\AppData\Local\Temp\pip-heu3fbw7-record\install-record.txt —single-version-externally-managed —compile» failed with error code 1 in C:\Users\yiugn_\AppData\Local\Temp\pip-build-of4wiq6k\ta-lib\

@mrjbq7

Did you install the underlying TA-Lib library like is mentioned in the README?

@mrjbq7

Are you trying to run 64-bit Python with the 32-bit TA-Lib windows library?

@yiugn

  1. I think I followed instruction as noted in the README… Is there anything special in README?
    I just tried to install TA-Lib in cmd window…
    Belows are what I have tried..

pip install TA-Lib
pip install https://github.com/mrjbq7/ta-lib/zipball/master
pip install http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-msvc.zip

None of these worked. Is there anything I missed?

  1. Currently I am working on 64 bit Python with 3.5 version, Windows 10.
    Is there 64 bit TA-Lib windows library? I can’t find 64bit version.
    Where can I find 64 bit version?

Thanks

@yiugn

C:\Users\yiugn>pip install ta-lib
Collecting ta-lib
Using cached TA-Lib-0.4.10.tar.gz
Building wheels for collected packages: ta-lib
Running setup.py bdist_wheel for ta-lib … error
Complete output from command C:\Users\yiugn\Anaconda3\python.exe -u -c «import setuptools, tokenize;file=’C:\Users\yiugn\AppData\Local\Temp\pip-build-fq2if3tu\ta-lib\setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))» bdist_wheel -d C:\Users\yiugn\AppData\Local\Temp\tmp_eg4jubxpip-wheel- —python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\talib
copying talib\deprecated.py -> build\lib.win-amd64-3.5\talib
copying talib\test_abstract.py -> build\lib.win-amd64-3.5\talib
copying talib\test_data.py -> build\lib.win-amd64-3.5\talib
copying talib\test_func.py -> build\lib.win-amd64-3.5\talib
copying talib\test_stream.py -> build\lib.win-amd64-3.5\talib
copying talib_init_.py -> build\lib.win-amd64-3.5\talib
running build_ext
building ‘talib.common’ extension
creating build\temp.win-amd64-3.5
creating build\temp.win-amd64-3.5\Release
creating build\temp.win-amd64-3.5\Release\talib
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\yiugn\Anaconda3\lib\site-packages\numpy\core\include -Ic:\ta-lib\c\include -IC:\Users\yiugn\Anaconda3\include -IC:\Users\yiugn\Anaconda3\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.win-amd64-3.5\Release\talib/common.obj
common.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\ta-lib\c\lib /LIBPATH:C:\Users\yiugn\Anaconda3\libs /LIBPATH:C:\Users\yiugn\Anaconda3\PCbuild\amd64 «/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64» «/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64» «/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64» ta_libc_cdr.lib /EXPORT:PyInit_common build\temp.win-amd64-3.5\Release\talib/common.obj /OUT:build\lib.win-amd64-3.5\talib\common.cp35-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.lib
common.obj : warning LNK4197: export ‘PyInit_common’ specified multiple times; using first specification
Creating library build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.lib and object build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.exp
common.obj : error LNK2001: unresolved external symbol TA_SetUnstablePeriod
common.obj : error LNK2001: unresolved external symbol TA_Shutdown
common.obj : error LNK2001: unresolved external symbol TA_Initialize
common.obj : error LNK2001: unresolved external symbol TA_GetUnstablePeriod
common.obj : error LNK2001: unresolved external symbol TA_GetVersionString
build\lib.win-amd64-3.5\talib\common.cp35-win_amd64.pyd : fatal error LNK1120: 5 unresolved externals
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe’ failed with exit status 1120


Failed building wheel for ta-lib
Running setup.py clean for ta-lib
Failed to build ta-lib
Installing collected packages: ta-lib
Running setup.py install for ta-lib … error
Complete output from command C:\Users\yiugn\Anaconda3\python.exe -u -c «import setuptools, tokenize;file=’C:\Users\yiugn\AppData\Local\Temp\pip-build-fq2if3tu\ta-lib\setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))» install —record C:\Users\yiugn\AppData\Local\Temp\pip-xucc65l0-record\install-record.txt —single-version-externally-managed —compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\talib
copying talib\deprecated.py -> build\lib.win-amd64-3.5\talib
copying talib\test_abstract.py -> build\lib.win-amd64-3.5\talib
copying talib\test_data.py -> build\lib.win-amd64-3.5\talib
copying talib\test_func.py -> build\lib.win-amd64-3.5\talib
copying talib\test_stream.py -> build\lib.win-amd64-3.5\talib
copying talib_init_.py -> build\lib.win-amd64-3.5\talib
running build_ext
building ‘talib.common’ extension
creating build\temp.win-amd64-3.5
creating build\temp.win-amd64-3.5\Release
creating build\temp.win-amd64-3.5\Release\talib
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\yiugn\Anaconda3\lib\site-packages\numpy\core\include -Ic:\ta-lib\c\include -IC:\Users\yiugn\Anaconda3\include -IC:\Users\yiugn\Anaconda3\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.win-amd64-3.5\Release\talib/common.obj
common.c
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\ta-lib\c\lib /LIBPATH:C:\Users\yiugn\Anaconda3\libs /LIBPATH:C:\Users\yiugn\Anaconda3\PCbuild\amd64 «/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64» «/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64» «/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64» ta_libc_cdr.lib /EXPORT:PyInit_common build\temp.win-amd64-3.5\Release\talib/common.obj /OUT:build\lib.win-amd64-3.5\talib\common.cp35-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.lib
common.obj : warning LNK4197: export ‘PyInit_common’ specified multiple times; using first specification
Creating library build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.lib and object build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.exp
common.obj : error LNK2001: unresolved external symbol TA_SetUnstablePeriod
common.obj : error LNK2001: unresolved external symbol TA_Shutdown
common.obj : error LNK2001: unresolved external symbol TA_Initialize
common.obj : error LNK2001: unresolved external symbol TA_GetUnstablePeriod
common.obj : error LNK2001: unresolved external symbol TA_GetVersionString
build\lib.win-amd64-3.5\talib\common.cp35-win_amd64.pyd : fatal error LNK1120: 5 unresolved externals
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe’ failed with exit status 1120

----------------------------------------

Command «C:\Users\yiugn\Anaconda3\python.exe -u -c «import setuptools, tokenize;file=’C:\Users\yiugn\AppData\Local\Temp\pip-build-fq2if3tu\ta-lib\setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))» install —record C:\Users\yiugn\AppData\Local\Temp\pip-xucc65l0-record\install-record.txt —single-version-externally-managed —compile» failed with error code 1 in C:\Users\yiugn\AppData\Local\Temp\pip-build-fq2if3tu\ta-lib\

@mrjbq7

The problem is very likely trying to run 64-bit Python with 32-bit TA-Lib. Unfortunately, they only distribute binaries built for 32-bit Windows. You can, however, build your own 64-bit TA-Lib from source. There is some discussion about doing that on this bug:

#11

If you do get it to work, it would be great if you could provide a list of instructions so I can add them to the README.

@kristofmoens

I had a similar problem when trying to compile it, I tried to recreate the structure by using CMake. You can find the repository at https://github.com/kristofmoens/ta-lib

Compiling can be done by:
cd c
cmake -G «Visual Studio 14 2015 Win64» src
msbuild ALL_BUILD.vcxproj

That should generate the needed ta_lib.lib file.

@MountainCountry

I’m unable to install TA-Lib as well,
Have done the following:
-created c:\ta-lib folder and have the following in the folder:
1 TA_Lib-0.4.10-cp36-cp36-win_amd64
2 ta-lib-0.4.0.0(2).jar
3 ta-lib-0.4.0-1.i386.rpm
4 TA-Lib-0.4.10.tar.gz

Have tried to do a pip install TA-Lib form cmd.exe-no dice
Have tried to do a python setup.py install- no luck

Currently running Python 3.5.2 on Windows 10

Keep getting the dreaded «Failed building wheel for TA-Lib» & «cannot open include file:»ta_libc.h’: No such file or directory» along with the «»Microsoft Visual Studio 14.0\VC\Bin\x86_amd64\c1.exe.» failed with exit status 2″

@mrjbq7

Hi @MountainCountry,

I’m sorry you’re having problems. Your main problem is likely to be trying to use 64-bit Python with the 32-bit binary release of the ta-lib C library.

Quoting from the README:

Download ta-lib-0.4.0-msvc.zip and unzip to C:\ta-lib

This is a 32-bit release. If you want to use 64-bit Python, you will need to build a 64-bit version > > of the library.

So, if you want to use 32-bit Python, you can follow the instructions to «Download ta-lib-0.4.0-msvc.zip and unzip to C:\ta-lib». You will know you did it correctly if you have C:\ta-lib\c\include and C:\ta-lib\c\lib directories.

If you want to use 64-bit Python, you will need to build the underlying ta-lib C library yourself or find someone that has already done that for you. You can find discussion and instructions on different bug reports, for example #11 or #127 (comment).

@mrjbq7

P.S., anyone want to write up and contribute clean «build 64-bit windows binaries of ta-lib C library»? It would be very appreciated since this issue seems to come up a lot (as most Windows users are on 64-bit now). We could put it in the README

@stevens-tech

Here are my instructions to build the 64-bit ta-lib.

Install TA-Lib C Library on Windows 10

  1. Download and Unzip ta-lib-0.4.0-msvc.zip
  2. Move the Unzipped Folder ta-lib to C:\
  3. Download and Install Visual Studio Community 2015
    • Remember to Select [Visual C++] Feature
  4. Build TA-Lib Library
    • From Windows Start Menu, Start [VS2015 x64 Native Tools Command Prompt]
    • Move to C:\ta-lib\c\make\cdr\win32\msvc
    • Build the Library nmake
  5. Then pip3 install ta-lib
jsaperas, pwojcikdev, r1proto, hawkinggg, chungnguyenfit, DKMudrechenko, leehanchung, ferankliu, AUK1939, oalexandere, and 76 more reacted with thumbs up emoji
Keeqler, hansfriese, kitaev-chen, barakavisar, ehsan1384, eialanjones, uncttao, siru409, bbertram99, and mshmbo reacted with laugh emoji
miberxx, justttry, jad21, StrikerRUS, BlancHeart, misteriusdrh, Noahinn, TheodoreKrypton, lunluen, kitaev-chen, and 8 more reacted with hooray emoji
bastulli, TheTheorist, mdalvi, NewWheat, jpvm, JaysonAlbert, justttry, BigYuyo, BlancHeart, misteriusdrh, and 15 more reacted with heart emoji
eialanjones, Shamnad-s, uncttao, viv1codes, siru409, bbertram99, and mshmbo reacted with rocket emoji

@thecfguy

Here is what works for me…
Download TA_Lib-0.4.10-cp27-cp27m-win_amd64.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib.
And use command
pip install TA_Lib-0.4.10-cp27-cp27m-win_amd64.whl

I was using Conda4 with python 3.6 64 bit version.

Bennnyy, bhavsarpratik, jam-lock, zdco, SeverX, valaton, stanwanghk, shaobo76, DiiaanaD, leowei0129, and 70 more reacted with thumbs up emoji
manubauer reacted with thumbs down emoji
Bennnyy, SeverX, valaton, thom1337, khbalhandawi, nareddyt, JamesFarrant, jeff-hernandez, kickbox, lydnguyen, and 13 more reacted with laugh emoji
JamesFarrant, jeff-hernandez, apovall, mostprogrammer, Noahinn, jsabhishek, tlhpsound, Uxamailyax, wahidanvary, nameless0704, and youyuxiansen reacted with hooray emoji
Uxamailyax, Sinansi, wahidanvary, RobDBob, nameless0704, and youyuxiansen reacted with heart emoji
jsabhishek, iml-v, Cogax, tlhpsound, Uxamailyax, redLeR1st, wahidanvary, nameless0704, and youyuxiansen reacted with rocket emoji

@KabeerSinghBedi

CDLLONGLINE is predicting wrong candle stick as Longline. Multiple times the same issue is happening so can u help me out with this.@mrjbq7

@mrjbq7

Hi @KabeerSinghBedi, if you have a particular example where you think the output is wrong, feel free to open an issue with the sample data and maybe I can help. There are a few things I would say, though:

  1. This is just a lightweight wrapper for the TA-Lib C library (http://ta-lib.org) which is where a bug in the logic should probably be fixed/addressed.

  2. The TA-Lib C library has some candlestick settings that might control how the candlestick implementation determines which outputs to make. I made a commit recently that allows you to set them in d25e9df.

  3. The code for CDLLONGLINE is here https://sourceforge.net/p/ta-lib/code/HEAD/tree/trunk/ta-lib/c/src/ta_func/ta_CDLLONGLINE.c and you can read through the logic which is fairly short so it should be easy to troubleshoot. I note the following comment from the code:

    The meaning of «long» and «short» is specified with TA_SetCandleSettings
    outInteger is positive (1 to 100) when white (bullish), negative (-1 to -100) when black (bearish)

    And the TA_CANDLECOLOR function that it uses is from this define:

    #define TA_CANDLECOLOR(IDX)     ( inClose[IDX] >= inOpen[IDX] ? 1 : -1 )

This issue is for installation issues on 64-bit Windows, so please continue this discussion on a new issue, thanks!

@afnhsn

@quaid281

I have tried everything on this page with no luck. A Youtube tutorial would be clutch at this point

@mrjbq7

@quaid281 I’m sorry it’s not working for you.

Windows is the biggest source of problems because most people don’t have C compilers and expect to be able to install binaries.

Well, the underlying TA-Lib windows binary is only 32-bit. So it works if you use 32-bit python, but if you want 64-bit python, then you need to build the underlying TA-Lib yourself.

#127 (comment)

If building this python ta-lib wrapper is hard, then you can use the unofficial binaries made available here:

#127 (comment)

Generally, it should be pretty easy to pip3 install ta-lib. And it is on macOS and Linux. Unfortunately, Windows makes it a little complex.

@masdeseiscaracteres

@quaid281 I have just compiled the TA-lib library for Windows 64 bit and created Python wheels for both Python 3.5 & 3.6. I’ve uploaded it to

Now, installing should be as simple as:

pip install -i https://pypi.anaconda.org/masdeseiscaracteres/simple ta-lib

I haven’t tested it thoroughly yet. Let me know if it works…

karthikeyann, dartpain, JuanLozadaM, mosemet, kenmaready, cooltechie007, sem9proj, jimportico, usgoose, santiagocasas, and 11 more reacted with thumbs up emoji
JuanLozadaM, mmngreco, sem9proj, tkifelew, takkyi83, and Infernolia reacted with laugh emoji
mayankrasu, karthikeyann, JuanLozadaM, kenmaready, bsegot, sem9proj, iml-v, tkifelew, takkyi83, Infernolia, and ibeakanmaj reacted with hooray emoji
gp-slick-coder, JuanLozadaM, kenmaready, sem9proj, usgoose, santiagocasas, iml-v, prabuinet, tkifelew, takkyi83, and 2 more reacted with heart emoji

@quaid281

Collecting ta-lib
Downloading https://pypi.anaconda.org/masdeseiscaracteres/simple/ta-lib/0.4.17/TA_Lib-0.4.17-cp36-cp36m-win_amd64.whl (539kB)
100% |████████████████████████████████| 542kB 606kB/s
Requirement already satisfied: numpy in c:\users\uzi\anaconda3\lib\site-packages (from ta-lib)
Installing collected packages: ta-lib
Successfully installed ta-lib-0.4.17
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the ‘python -m pip install —upgrade pip’ command.

hmm. okay, seems to have worked. I will try it this weekend

@mayankrasu

@mayankrasu

@stevens-tech at the nmake step I get the error:
‘cl’ is not recognized as an internal or external command
Appreciate if someone can help me get around this.

@karifann

@masdeseiscaracteres thanks for input. Didn’t work for me, however. Tried for Python 3.5 and 3.6 (conda) same issue : Could not find a version that satisfies the requirement ta-lib … No matching distribution found for ta-lib.
I also tried install similar wheels from https://www.lfd.uci.edu/~gohlke/pythonlibs/ — similar issue: … is not a supported wheel on this platform.
I know my python is 64 bit and I have installed numpy
:((

@karifann

Seems I found the problem. My initial anaconda setup was python 2.7 64bit. I made additional environment 3.6 for tensorflow. I activated 3.6 evn and when trying to pip the build from https://www.lfd.uci.edu/~gohlke/pythonlibs/ or the build from masdeseiscaracteres it gave me that error (see higher). Conda somehow considered me using base python 2.7 I think. Then I opened cmd prompt -> went to my 3.6 environment script folder and tried to pip from there. And it worked :)

@kenmaready

Thank you @masdeseiscaracteres! Nothing else worked for me, but your wheels worked great. Thank you.

@TheCabe

@usgoose

I was getting the errors below, but then I tried #127 (comment) and it worked, thank you @masdeseiscaracteres.

Environment:

conda version : 4.6.1
conda-build version : 3.17.6
python version : 3.6.5.final.0

Output:

(base) C:\Users\XYZ>conda install -c quantopian ta-lib
Collecting package metadata: done
Solving environment: done

## Package Plan ##

  environment location: C:\Users\XYZ\Anaconda3

  added / updated specs:
    - ta-lib


The following NEW packages will be INSTALLED:

  certifi            pkgs/main/win-64::certifi-2018.8.24-py35_1
  pip                pkgs/main/win-64::pip-10.0.1-py35_0
  setuptools         pkgs/main/win-64::setuptools-40.2.0-py35_0
  ta-lib             quantopian/win-64::ta-lib-0.4.9-np114py35_0
  zstd               pkgs/main/win-64::zstd-1.3.7-h508b16e_0

The following packages will be UPDATED:

  ca-certificates                              2018.03.07-0 --> 2018.12.5-0
  libarchive                               3.3.2-h798a506_7 --> 3.3.3-h0643e63_5
  libpng                                  1.6.34-h79bbb47_0 --> 1.6.36-h2a8f88b_0
  openssl                                 1.0.2o-h8ea7d77_0 --> 1.1.1a-he774522_0
  qt                                   5.9.5-vc14he4a7d60_0 --> 5.9.7-vc14h73c81de_0
  sqlite                                  3.23.1-h35aae40_0 --> 3.26.0-he774522_0
  vc                                          14-h0510ff6_3 --> 14.1-h0510ff6_4
  vs2015_runtime                               14.0.25123-3 --> 14.15.26706-h3a45250_0

The following packages will be DOWNGRADED:

  libssh2                                  1.8.0-hd619d38_4 --> 1.8.0-h7a1dbc1_4
  numpy                               1.14.3-py36h9fa60d3_1 --> 1.14.2-py35h5c71026_0
  python                                   3.6.5-h0c2934d_0 --> 3.5.6-he025d50_0
  wheel                                       0.31.1-py36_0 --> 0.31.1-py35_0
  wincertstore                           0.2-py36h7fe50ca_0 --> 0.2-py35hfebbdb8_0


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: failed

RemoveError: 'requests' is a dependency of conda and cannot be removed from
conda's operating environment.
RemoveError: 'setuptools' is a dependency of conda and cannot be removed from
conda's operating environment.
(base) C:\Users\XYZ>pip install TA_Lib-0.4.17-cp27-cp27m-win_amd64.whl
TA_Lib-0.4.17-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform.
You are using pip version 9.0.1, however version 19.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

@Jens1989

Here is what works for me…
Download TA_Lib-0.4.10-cp27-cp27m-win_amd64.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib.
And use command
pip install TA_Lib-0.4.10-cp27-cp27m-win_amd64.whl

I was using Conda4 with python 3.6 64 bit version.

I have the following problem when I try it:

ERROR: Invalid requirement: ‘TA_Lib-0.4.17-cp37-cp37m-win_amd64.’

@mrjbq7

@Jens1989 if you want to use it with Python 3.6, you probably want the ...-cp36-cp36m-... version…

@Jens1989

thanks, I finally got it working. I had an issue with the environment variables which didn’t have the path to the correct python version so that’s why it wasn’t recognized. thanks for your help!

@jorgecolonconsulting

Try installing ta-lib first with your package manager (Brew, MacPorts, etc) before you run pip install ta-lib. Looks like it needs C source code for ta-lib or the libraries it produces.

@zoakes

I’ve been stuck on this since the Catalina update — does anyone know how to resolve for iOS? I had trouble the first time, but got it with brew, I’ve tried every command I can find for iOS and nothing. This damn wheel will not build — whatever that means.

@mrjbq7

Are you using iOS or macOS?

Are you saying brew install ta-lib doesn’t work?

Or that after that, pip install ta-lib doesn’t work?

On Oct 31, 2019, at 4:34 PM, Zach Mazz ***@***.***> wrote:


I’ve been stuck on this since the Catalina update — does anyone know how to resolve for iOS? I had trouble the first time, but got it with brew, I’ve tried every command I can find for iOS and nothing. This damn wheel will not build — whatever that means.


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.

@zoakes

Mac OSx Catalina 10.15.

Brew install ta-lib runs, but when I import talib in ipynb it’s throwing no module named ’talib’

Pip install does not work, (error building wheel, error with ‘gcc’ — the cpp compiler I imagine)
I don’t think pip install ta-lib ever worked for me, but before Catalina update, my Talib with Brew worked fine in use.

—————————————————————————
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-158-bd64a27f98dc> in <module>
2 import numpy as np
3 import matplotlib.pyplot as plt
—-> 4 import talib
5
6 aapl = pdr.DataReader(‘aapl’,’yahoo’,’2015′)

ModuleNotFoundError: No module named ‘talib’

On Oct 31, 2019, at 6:56 PM, John Benediktsson <notifications@github.com<mailto:notifications@github.com>> wrote:

Are you using iOS or macOS?

Are you saying brew install ta-lib doesn’t work?

Or that after that, pip install ta-lib doesn’t work?

On Oct 31, 2019, at 4:34 PM, Zach Mazz ***@***.******@***.***>> wrote:


I’ve been stuck on this since the Catalina update — does anyone know how to resolve for iOS? I had trouble the first time, but got it with brew, I’ve tried every command I can find for iOS and nothing. This damn wheel will not build — whatever that means.


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.

@ehsan1384

Thanks , worked very well :)

@kelvinu

conda install -c quantopian ta-lib=0.4.9

@kwokmoonho

  1. check your python version in terminal: python -V
  2. the default spyder python version is 3.7, so u may want to low it down to 3.5
    conda create -n py35 python=3.5 anaconda
  3. then you need to switch your version to python 3.5 by:
    Window: activate py35
    MAC: conda activate py35
  4. then you can use the following command to install ta-lib:
    conda install -c quantopian ta-lib
  5. when you open your conda, remember to switch to a suitable python version before you launch your spyder.

@soumen29dec

I know i am quite late in working on TA-Lib and also realized it is really difficult to install in windows 64-bit. but i strongly suggest to watch this short YouTube video and you get the library through simple steps. Umesh has wonderfully shown each step quite easily and understanably
https://www.youtube.com/watch?v=VJyNArEU0ws

@mrjbq7

If anyone wants to help contribute to a wheel package that’s easier to
install on windows, and includes the TA-Lib underlying C library, that
would be awesome.

@giuliaserafini

@lightmate

  1. I think I followed instruction as noted in the README… Is there anything special in README?
    I just tried to install TA-Lib in cmd window…
    Belows are what I have tried..

pip install TA-Lib
pip install https://github.com/mrjbq7/ta-lib/zipball/master
pip install http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-msvc.zip

None of these worked. Is there anything I missed?

  1. Currently I am working on 64 bit Python with 3.5 version, Windows 10.
    Is there 64 bit TA-Lib windows library? I can’t find 64bit version.
    Where can I find 64 bit version?

Thanks

[Windows 10, 64 bit, Anaconda ]I am using windows 10 64bit and when I tried to install ta-lib faced similar issues however this youtube video([https://www.youtube.com/watch?v=VJyNArEU0ws&ab_channel=QuantAlpha]) solved all of my issues and I am using ta-lib in my anaconda environment just fine.
hope this helps

@Marl27

Maybe it’s too late to answer but someone might always be struggling with TA-Lib.
Since I am using Python3.9, I downloaded the TA_Lib-0.4.19-cp39-cp39-win_amd64.whl in the project folder and used ‘pip install TA_Lib-0.4.19-cp39-cp39-win_amd64.whl’ and it worked.

@avangardistic

it can`t be installed on Google Colab
!pip install TA-Lib

Collecting TA-Lib
Using cached https://files.pythonhosted.org/packages/ac/cf/681911aa31e04ba171ab4d523a412f4a746e30d3eacb1738799d181e028b/TA-Lib-0.4.19.tar.gz
Requirement already satisfied: numpy in /usr/local/lib/python3.6/dist-packages (from TA-Lib) (1.19.5)
Building wheels for collected packages: TA-Lib
Building wheel for TA-Lib (setup.py) … error
ERROR: Failed building wheel for TA-Lib
Running setup.py clean for TA-Lib
Failed to build TA-Lib
Installing collected packages: TA-Lib
Running setup.py install for TA-Lib … error
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘/tmp/pip-install-yj3x6xmj/TA-Lib/setup.py'»‘»‘; file='»‘»‘/tmp/pip-install-yj3x6xmj/TA-Lib/setup.py'»‘»‘;f=getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file);code=f.read().replace(‘»‘»‘\r\n'»‘»‘, ‘»‘»‘\n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ install —record /tmp/pip-record-rngzj859/install-record.txt —single-version-externally-managed —compile Check the logs for full command output.

@mannyinwang

I tried to install it in ubuntu but I am getting the error below

Building wheel for ta-lib (setup.py) … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘/tmp/pip-install-8lvvui4u/ta-lib/setup.py'»‘»‘; file='»‘»‘/tmp/pip-install-8lvvui4u/ta-lib/setup.py'»‘»‘;f=getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file);code=f.read().replace(‘»‘»‘\r\n'»‘»‘, ‘»‘»‘\n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ bdist_wheel -d /tmp/pip-wheel-1yzigke3
cwd: /tmp/pip-install-8lvvui4u/ta-lib/

Ran these commands:

  • untar tar -xvf ta-lib-0.4.0-src.tar.gz
  • cd /../ta-lib
  • ./configure —prefix=/usr
  • make
  • sudo make install
  • sudo apt upgrade
  • pip install ta-lib or pip install TA-Lib

Has someone been able to successfully install in Ubuntu

@yesdeepakmittal

@BalajiAmbachi

@quaid281 I have just compiled the TA-lib library for Windows 64 bit and created Python wheels for both Python 3.5 & 3.6. I’ve uploaded it to

Now, installing should be as simple as:

pip install -i https://pypi.anaconda.org/masdeseiscaracteres/simple ta-lib

I haven’t tested it thoroughly yet. Let me know if it works…

@masdeseiscaracteres — I tried installing in my anaconda prompt. Python 3.9, windows 64
But i got the below error message
ERROR: Could not find a version that satisfies the requirement ta-lib

ERROR: No matching distribution found for ta-lib

@SmartManoj

pip install pipwin
pipwin install TA-Lib

@mrjbq7

If you are using Python 3.6, why install the cp27 (Python 2.7) wheel?

On Oct 7, 2021, at 3:17 AM, மனோஜ்குமார் பழனிச்சாமி ***@***.***> wrote:


Here is what works for me… Download TA_Lib-0.4.10-cp27-cp27m-win_amd64.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib. And use command pip install TA_Lib-0.4.10-cp27-cp27m-win_amd64.whl

I was using Conda4 with python 3.6 64 bit version.
pip install pipwin pipwin install TA-Lib


You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

@Amiransari92

Here is what works for me… Download TA_Lib-0.4.10-cp27-cp27m-win_amd64.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib. And use command pip install TA_Lib-0.4.10-cp27-cp27m-win_amd64.whl

I was using Conda4 with python 3.6 64 bit version.

worked with python 3.8 64 bit windows10 also. Just download respective file from the given link, and cd to downloaded dir and run pip install installedFile

@sskohli01

Try installing ta-lib first with your package manager (Brew, MacPorts, etc) before you run pip install ta-lib. Looks like it needs C source code for ta-lib or the libraries it produces.

this worked for me on mac intel m1, i had to also install numpy first

@Dev-iL

I ran into exactly the same problem and was able to resolve it and install TA-lib on Linux and my OSX laptop. I’ll stick to linux instructions here specifically CentOS, but the trick for both was the same… you must have TA-lib binary libraries installed on the machine before the python wrapper will install with pip.

The reference I used: ttps://github.com/mrjbq7/ta-lib

If this command is failing:

pip install TA-lib

Complaining about ta_libc headers as such:

func.c:256:28: fatal error: ta-lib/ta_libc.h: No such file or directory
compilation terminated.

You’ll need to install TA-lib binaries before installing the python wrapper. I downloaded it as follows:

wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz

Then uncompressed it, compiled it and installed:

tar -xvf ta-lib-0.4.0-src.tar.gz 
cd ta-lib
./configure --prefix=/usr
make
sudo make install
sudo ldconfig

If you don’t have gcc and/or python3-dev on your machine, the above steps will give you hard time. Initially they were blowing up on me, so I satisfied the dependencies with:

sudo yum install gcc
sudo yum install python36-dev

Then re-run the steps from the beginning, this time with success. The above solution worked in my case.

I hope that helps, Good Luck!

BTW. My first ever answer here, I hope it helps someone, I’ve used StackOverflow to get passed many problems in the past, so I am hoping to reciprocate.

2018-08-30 UDPATE: I kept running into compiling issues specifically the error listed below would happen repeatedly. It turned out that I didn’t have enough RAM (1GB) in the Virtual Machine. Solution ref:(https://github.com/mrjbq7/ta-lib/issues/133) so I upgraded RAM (2GB) and issue went away.

talib/_ta_lib.c:208671:15: warning: assignment from incompatible pointer type [enabled by default]

2021-03-06 UDPATE: OSX Catalina update! When compiling the TA-lib on OSX Catalina (10.15+) the above instructions did not work, I had to modify this:

tar -xvf ta-lib-0.4.0-src.tar.gz 
cd ta-lib 
./configure 
make
sudo make install 

After that, the pip install worked fine. –

Answer by Kailani Proctor

You could try the «Unofficial Windows Binaries for Python Extension Packages
by Christoph Gohlke, Laboratory for Fluorescence Dynamics, University of California, Irvine.»,Some unofficial (and unsupported) instructions for building on 64-bit Windows 10, here for reference:,Making statements based on opinion; back them up with references or personal experience.,
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Since we have downloaded the file, TA_Lib‑0.4.17‑cp37‑cp37m‑win_amd64.whl, the command would be:

pip install TA_Lib‑0.4.17‑cp35‑cp35m‑win_amd64.whl`

Answer by Mekhi Huff

Command «C:\Users\yiugn_\Anaconda3\python.exe -u -c «import setuptools, tokenize;file=’C:\Users\yiugn_\AppData\Local\Temp\pip-build-of4wiq6k\ta-lib\setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))» install —record C:\Users\yiugn_\AppData\Local\Temp\pip-heu3fbw7-record\install-record.txt —single-version-externally-managed —compile» failed with error code 1 in C:\Users\yiugn_\AppData\Local\Temp\pip-build-of4wiq6k\ta-lib\,Command «C:\Users\yiugn\Anaconda3\python.exe -u -c «import setuptools, tokenize;file=’C:\Users\yiugn\AppData\Local\Temp\pip-build-fq2if3tu\ta-lib\setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))» install —record C:\Users\yiugn\AppData\Local\Temp\pip-xucc65l0-record\install-record.txt —single-version-externally-managed —compile» failed with error code 1 in C:\Users\yiugn\AppData\Local\Temp\pip-build-fq2if3tu\ta-lib\,Building wheel for ta-lib (setup.py) … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘/tmp/pip-install-8lvvui4u/ta-lib/setup.py'»‘»‘; file='»‘»‘/tmp/pip-install-8lvvui4u/ta-lib/setup.py'»‘»‘;f=getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file);code=f.read().replace(‘»‘»‘\r\n'»‘»‘, ‘»‘»‘\n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ bdist_wheel -d /tmp/pip-wheel-1yzigke3
cwd: /tmp/pip-install-8lvvui4u/ta-lib/,Windows is the biggest source of problems because most people don’t have C compilers and expect to be able to install binaries.

----------------------------------------

Answer by Tucker Flynn

To use TA-Lib for python, you need to have the TA-Lib
already installed:,If you get build errors like this, it typically means that it can’t find the
underlying TA-Lib library and needs to be installed:,If you build TA-Lib using make -jX it will fail but that’s OK!
Simply rerun make -jX followed by [sudo] make install.,Download ta-lib-0.4.0-msvc.zip
and unzip to C:\ta-lib

You can install from PyPI:

$ pip install TA-Lib

Or checkout the sources and run setup.py yourself:

$ python setup.py install

Troubleshooting Install Errors

func.c:256:28: fatal error: ta-lib/ta_libc.h: No such file or directory
compilation terminated.

Mac OS X

$ brew install ta-lib

Download ta-lib-0.4.0-src.tar.gz and:

$ untar and cd
$ ./configure --prefix=/usr
$ make
$ sudo make install

Answer by Phoenix Little

Recall that at the start of this tutorial on Installing Python Ta-Lib, we talked about Bollinger Bands. Well, let’s try that one now.,First, we call the python language by simply writing “python” in the terminal. We then use the following command to import the Ta-Lib library.,The Ta-lib installation in Linux can be a bit tricky. The libraries necessary for the Ta-lib installation should be installed first before you install the Python wrapper.,If there are no errors, then it means that the python Ta-Lib library has been successfully installed on your computer.

Check if you can use the ‘brew’ command. For this tutorial on how to install Ta-Lib, let us assume that the ‘brew’ command throws an error. To rectify this, we install the necessary package by using the following line of code in the MacOS shell:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Thus, the code will be as follows:

import talib as ta import matplotlib.pyplot as plt plt.style.use('bmh')
import yfinance as yf aapl = yf.download('AAPL', '2019-1-1','2019-12-27')

Let us start off with something simple. We will find the Simple Moving Average and the Exponential Moving Average of Apple stock data. We will use the following code:

aapl['Simple MA'] = ta.SMA(aapl['Close'],14)
aapl['EMA'] = ta.EMA(aapl['Close'], timeperiod = 14)

# Plot aapl
[['Close','Simple MA','EMA']].plot(figsize=(15,15)) plt.show()

Recall that at the start of this tutorial on Installing Python Ta-Lib, we talked about Bollinger Bands. Well, let’s try that one now.

# Bollinger Bands aapl['upper_band'], aapl['middle_band'], aapl['lower_band'] = ta.BBANDS(aapl['Close'], timeperiod =20)

# Plot aapl[['Close','upper_band','middle_band','lower_band']].plot(figsize=(15,15)) plt.show()

Now, can you figure out from the code below, what are the parameters passed?

aapl['RSI'] = ta.RSI(aapl['Close'],14) aapl['RSI'].plot(figsize=(15,15)) plt.show()

As a bonus, we plotted the Stochastic oscillators as well, the code is given below:

aapl['slowk'], aapl['slowd'] = ta.STOCH(aapl['High'], aapl['Low'], aapl['Close'], fastk_period=14, slowk_period=3, slowk_matype=0, slowd_period=3, slowd_matype=0) aapl[['slowk','slowd']].plot(figsize=(15,15)) plt.show()
aapl['fastk'], aapl['fastd'] = ta.STOCHF(aapl['High'], aapl['Low'], aapl['Close'], fastk_period=14, fastd_period=3, fastd_matype=0) aapl[['fastk','fastd']].plot(figsize=(15,15)) plt.show()

Answer by Azalea Lambert

checked the Troubleshooting, installed the gcc, python-devel, libffi-devel, openssl-devel, but still not working!,but got this error «command ‘gcc’ failed with exit status 1»:,If you don’t have gcc and/or python3-dev on your machine, the above steps will give you hard time. Initially they were blowing up on me, so I satisfied the dependencies with:,You can put this in a script called install_talib.sh or something, and then run ./install_talib.sh from the command line.

i install TA-lib with below command,

pip install TA-lib

Answer by Charlie Carter

To use TA-Lib for python, you need to have the
TA-Lib already installed. You should
probably follow their installation directions for your platform, but some
suggestions are included below for reference.,This typically means setup.py can’t find the underlying TA-Lib
library, a dependency which needs to be installed.,This typically means that you need the Python headers, and should run
something like:,Similar to TA-Lib, the Function API provides a lightweight wrapper of the
exposed TA-Lib indicators.

You can install from PyPI:

$ pip install TA-Lib

Or checkout the sources and run setup.py yourself:

$ python setup.py install

It also appears possible to install via
Conda Forge:

$ conda install -c conda-forge ta-lib
Mac OS X
$ brew install ta-lib

If you are using a M1 laptop and Homebrew, then you can set these before
installing:

export TA_INCLUDE_PATH="$(brew --prefix ta-lib)/include"
export TA_LIBRARY_PATH="$(brew --prefix ta-lib)/lib"

Download ta-lib-0.4.0-src.tar.gz and:

$ tar -xzf ta-lib-0.4.0-src.tar.gz
$ cd ta-lib/
$ ./configure --prefix=/usr
$ make
$ sudo make install

If you get a warning that looks like this:

setup.py:79: UserWarning: Cannot find ta-lib library, installation may fail.
warnings.warn('Cannot find ta-lib library, installation may fail.')

If you installed the underlying TA-Lib library with a custom prefix
(e.g., with ./configure --prefix=$PREFIX), then when you go to install
this python wrapper you can specify additional search paths to find the
library and include files for the underlying TA-Lib library using the
TA_LIBRARY_PATH and TA_INCLUDE_PATH environment variables:

$ export TA_LIBRARY_PATH=$PREFIX/lib
$ export TA_INCLUDE_PATH=$PREFIX/include
$ python setup.py install # or pip install ta-lib

Sometimes installation will produce build errors like this:

talib/_ta_lib.c:601:10: fatal error: ta-lib/ta_defs.h: No such file or directory
  601 | #include "ta-lib/ta_defs.h"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.

or:

common.obj : error LNK2001: unresolved external symbol TA_SetUnstablePeriod
common.obj : error LNK2001: unresolved external symbol TA_Shutdown
common.obj : error LNK2001: unresolved external symbol TA_Initialize
common.obj : error LNK2001: unresolved external symbol TA_GetUnstablePeriod
common.obj : error LNK2001: unresolved external symbol TA_GetVersionString

Sometimes installation will fail with errors like this:

talib/common.c:8:22: fatal error: pyconfig.h: No such file or directory
 #include "pyconfig.h"
                      ^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

This typically means that you need the Python headers, and should run
something like:

$ sudo apt-get install python3-dev

Sometimes building the underlying TA-Lib library has errors running
make that look like this:

../libtool: line 1717: cd: .libs/libta_lib.lax/libta_abstract.a: No such file or directory
make[2]: *** [libta_lib.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Sometimes you might get this error running setup.py:

/usr/include/limits.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~

If you wonder why STOCHRSI gives you different results than you expect,
probably you want STOCH applied to RSI, which is a little different
than the STOCHRSI which is STOCHF applied to RSI:

>>> import talib
>>> import numpy
>>> c = numpy.random.randn(100)

# this is the library function
>>> k, d = talib.STOCHRSI(c)

# this produces the same result, calling STOCHF
>>> rsi = talib.RSI(c)
>>> k, d = talib.STOCHF(rsi, rsi, rsi)

# you might want this instead, calling STOCH
>>> rsi = talib.RSI(c)
>>> k, d = talib.STOCH(rsi, rsi, rsi)

All of the following examples use the Function API:

import numpy
import talib

close = numpy.random.random(100)

Calculate a simple moving average of the close prices:

output = talib.SMA(close)

Calculating bollinger bands, with triple exponential moving average:

from talib import MA_Type

upper, middle, lower = talib.BBANDS(close, matype=MA_Type.T3)

Calculating momentum of the close prices, with a time period of 5:

output = talib.MOM(close, timeperiod=5)

For example, inputs could be provided for the typical «OHLCV» data:

import numpy as np

# note that all ndarrays must be the same length!
inputs = {
    'open': np.random.random(100),
    'high': np.random.random(100),
    'low': np.random.random(100),
    'close': np.random.random(100),
    'volume': np.random.random(100)
}

Functions can either be imported directly or instantiated by name:

from talib import abstract

# directly
SMA = abstract.SMA

# or by name
SMA = abstract.Function('sma')

From there, calling functions is basically the same as the function API:

from talib.abstract import *

# uses close prices (default)
output = SMA(inputs, timeperiod=25)

# uses open prices
output = SMA(inputs, timeperiod=25, price='open')

# uses close prices (default)
upper, middle, lower = BBANDS(inputs, 20, 2, 2)

# uses high, low, close (default)
slowk, slowd = STOCH(inputs, 5, 3, 0, 3, 0) # uses high, low, close by default

# uses high, low, open instead
slowk, slowd = STOCH(inputs, 5, 3, 0, 3, 0, prices=['high', 'low', 'open'])

An experimental Streaming API was added that allows users to compute the latest
value of an indicator. This can be faster than using the Function API, for
example in an application that receives streaming data, and wants to know just
the most recent updated indicator value.

import talib
from talib import stream

close = np.random.random(100)

# the Function API
output = talib.SMA(close)

# the Streaming API
latest = stream.SMA(close)

# the latest value is the same as the last output value
assert (output[-1] - latest) < 0.00001

We can show all the TA functions supported by TA-Lib, either as a list or
as a dict sorted by group (e.g. «Overlap Studies», «Momentum Indicators»,
etc):

import talib

# list of functions
print talib.get_functions()

# dict of functions by group
print talib.get_function_groups()
Overlap Studies
BBANDS               Bollinger Bands
DEMA                 Double Exponential Moving Average
EMA                  Exponential Moving Average
HT_TRENDLINE         Hilbert Transform - Instantaneous Trendline
KAMA                 Kaufman Adaptive Moving Average
MA                   Moving average
MAMA                 MESA Adaptive Moving Average
MAVP                 Moving average with variable period
MIDPOINT             MidPoint over period
MIDPRICE             Midpoint Price over period
SAR                  Parabolic SAR
SAREXT               Parabolic SAR - Extended
SMA                  Simple Moving Average
T3                   Triple Exponential Moving Average (T3)
TEMA                 Triple Exponential Moving Average
TRIMA                Triangular Moving Average
WMA                  Weighted Moving Average
Momentum Indicators
ADX                  Average Directional Movement Index
ADXR                 Average Directional Movement Index Rating
APO                  Absolute Price Oscillator
AROON                Aroon
AROONOSC             Aroon Oscillator
BOP                  Balance Of Power
CCI                  Commodity Channel Index
CMO                  Chande Momentum Oscillator
DX                   Directional Movement Index
MACD                 Moving Average Convergence/Divergence
MACDEXT              MACD with controllable MA type
MACDFIX              Moving Average Convergence/Divergence Fix 12/26
MFI                  Money Flow Index
MINUS_DI             Minus Directional Indicator
MINUS_DM             Minus Directional Movement
MOM                  Momentum
PLUS_DI              Plus Directional Indicator
PLUS_DM              Plus Directional Movement
PPO                  Percentage Price Oscillator
ROC                  Rate of change : ((price/prevPrice)-1)*100
ROCP                 Rate of change Percentage: (price-prevPrice)/prevPrice
ROCR                 Rate of change ratio: (price/prevPrice)
ROCR100              Rate of change ratio 100 scale: (price/prevPrice)*100
RSI                  Relative Strength Index
STOCH                Stochastic
STOCHF               Stochastic Fast
STOCHRSI             Stochastic Relative Strength Index
TRIX                 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA
ULTOSC               Ultimate Oscillator
WILLR                Williams' %R
Volume Indicators
AD                   Chaikin A/D Line
ADOSC                Chaikin A/D Oscillator
OBV                  On Balance Volume
Cycle Indicators
HT_DCPERIOD          Hilbert Transform - Dominant Cycle Period
HT_DCPHASE           Hilbert Transform - Dominant Cycle Phase
HT_PHASOR            Hilbert Transform - Phasor Components
HT_SINE              Hilbert Transform - SineWave
HT_TRENDMODE         Hilbert Transform - Trend vs Cycle Mode
Price Transform
AVGPRICE             Average Price
MEDPRICE             Median Price
TYPPRICE             Typical Price
WCLPRICE             Weighted Close Price
Volatility Indicators
ATR                  Average True Range
NATR                 Normalized Average True Range
TRANGE               True Range
Pattern Recognition
CDL2CROWS            Two Crows
CDL3BLACKCROWS       Three Black Crows
CDL3INSIDE           Three Inside Up/Down
CDL3LINESTRIKE       Three-Line Strike
CDL3OUTSIDE          Three Outside Up/Down
CDL3STARSINSOUTH     Three Stars In The South
CDL3WHITESOLDIERS    Three Advancing White Soldiers
CDLABANDONEDBABY     Abandoned Baby
CDLADVANCEBLOCK      Advance Block
CDLBELTHOLD          Belt-hold
CDLBREAKAWAY         Breakaway
CDLCLOSINGMARUBOZU   Closing Marubozu
CDLCONCEALBABYSWALL  Concealing Baby Swallow
CDLCOUNTERATTACK     Counterattack
CDLDARKCLOUDCOVER    Dark Cloud Cover
CDLDOJI              Doji
CDLDOJISTAR          Doji Star
CDLDRAGONFLYDOJI     Dragonfly Doji
CDLENGULFING         Engulfing Pattern
CDLEVENINGDOJISTAR   Evening Doji Star
CDLEVENINGSTAR       Evening Star
CDLGAPSIDESIDEWHITE  Up/Down-gap side-by-side white lines
CDLGRAVESTONEDOJI    Gravestone Doji
CDLHAMMER            Hammer
CDLHANGINGMAN        Hanging Man
CDLHARAMI            Harami Pattern
CDLHARAMICROSS       Harami Cross Pattern
CDLHIGHWAVE          High-Wave Candle
CDLHIKKAKE           Hikkake Pattern
CDLHIKKAKEMOD        Modified Hikkake Pattern
CDLHOMINGPIGEON      Homing Pigeon
CDLIDENTICAL3CROWS   Identical Three Crows
CDLINNECK            In-Neck Pattern
CDLINVERTEDHAMMER    Inverted Hammer
CDLKICKING           Kicking
CDLKICKINGBYLENGTH   Kicking - bull/bear determined by the longer marubozu
CDLLADDERBOTTOM      Ladder Bottom
CDLLONGLEGGEDDOJI    Long Legged Doji
CDLLONGLINE          Long Line Candle
CDLMARUBOZU          Marubozu
CDLMATCHINGLOW       Matching Low
CDLMATHOLD           Mat Hold
CDLMORNINGDOJISTAR   Morning Doji Star
CDLMORNINGSTAR       Morning Star
CDLONNECK            On-Neck Pattern
CDLPIERCING          Piercing Pattern
CDLRICKSHAWMAN       Rickshaw Man
CDLRISEFALL3METHODS  Rising/Falling Three Methods
CDLSEPARATINGLINES   Separating Lines
CDLSHOOTINGSTAR      Shooting Star
CDLSHORTLINE         Short Line Candle
CDLSPINNINGTOP       Spinning Top
CDLSTALLEDPATTERN    Stalled Pattern
CDLSTICKSANDWICH     Stick Sandwich
CDLTAKURI            Takuri (Dragonfly Doji with very long lower shadow)
CDLTASUKIGAP         Tasuki Gap
CDLTHRUSTING         Thrusting Pattern
CDLTRISTAR           Tristar Pattern
CDLUNIQUE3RIVER      Unique 3 River
CDLUPSIDEGAP2CROWS   Upside Gap Two Crows
CDLXSIDEGAP3METHODS  Upside/Downside Gap Three Methods
Statistic Functions
BETA                 Beta
CORREL               Pearson's Correlation Coefficient (r)
LINEARREG            Linear Regression
LINEARREG_ANGLE      Linear Regression Angle
LINEARREG_INTERCEPT  Linear Regression Intercept
LINEARREG_SLOPE      Linear Regression Slope
STDDEV               Standard Deviation
TSF                  Time Series Forecast
VAR                  Variance

Answer by Clementine Reynolds

You could try the «Unofficial Windows Binaries for Python Extension Packages
by Christoph Gohlke, Laboratory for Fluorescence Dynamics, University of California, Irvine.»,Some unofficial (and unsupported) instructions for building on 64-bit Windows 10, here for reference:,Go to the following page: https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib
Choose your version of python: cp35 means Python 3.5 (64 bit for example)
,Go on cmd and in the same directory (…\Python\Python35\Scripts) execute the following command:

Download ta-lib-0.4.0-msvc.zip from http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-msvc.zip and unzip to C:\ta-lib

ta-lib-0.4.0-msvc.zip

Download ta-lib-0.4.0-msvc.zip from http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-msvc.zip and unzip to C:\ta-lib

C:\ta-lib

Answer by Azrael Juarez

both shows that I need to downgrade my python==3.8 to lower version, which I can’t, especially, I need to use keras tunner.,I have tried a few ways to install it:,Meta-labeling and Stacking,There is a way to install TA-Lib for any version of python in Anaconda as shown in this video:

I have tried a few ways to install it:

pip install ta-lib

and

conda install -c quantopian ta-lib

Issue

Frustratingly having a lot of difficult installing the TA-Lib package in python.

https://pypi.python.org/pypi/TA-Lib

I have read through all the forum posts I can find on this but no such luck for my particular problem..

Windows 10
Python 3.5.2
Anaconda 4.2.0
Cython 0.24.1
Microsoft Visual Studio 14.0

I have downloaded and extracted  ta-lib-0.4.0-msvc.zip to C:/TA-Lib
(common problems seem to be people not installing the underlying TA-Lib file http://www.ta-lib.org/hdr_dw.html)

If someone could help me solve this I would be very appreciative!

Using ‘pip install ta-lib’ I get the following:

C:\Users\Matt>pip install ta-lib
Collecting ta-lib
  Using cached TA-Lib-0.4.10.tar.gz
Building wheels for collected packages: ta-lib
  Running setup.py bdist_wheel for ta-lib ... error
  Complete output from command c:\users\matt\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Matt\\AppData\\Local\\Temp\\pip-build-vv02ktg_\\ta-lib\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\Matt\AppData\Local\Temp\tmpqstzmsgspip-wheel- --python-tag cp35:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.5
  creating build\lib.win-amd64-3.5\talib
  copying talib\deprecated.py -> build\lib.win-amd64-3.5\talib
  copying talib\test_abstract.py -> build\lib.win-amd64-3.5\talib
  copying talib\test_data.py -> build\lib.win-amd64-3.5\talib
  copying talib\test_func.py -> build\lib.win-amd64-3.5\talib
  copying talib\test_stream.py -> build\lib.win-amd64-3.5\talib
  copying talib\__init__.py -> build\lib.win-amd64-3.5\talib
  running build_ext
  skipping 'talib\common.c' Cython extension (up-to-date)
  building 'talib.common' extension
  creating build\temp.win-amd64-3.5
  creating build\temp.win-amd64-3.5\Release
  creating build\temp.win-amd64-3.5\Release\talib
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\matt\anaconda3\lib\site-packages\numpy\core\include -Ic:\ta-lib\c\include -Ic:\users\matt\anaconda3\include -Ic:\users\matt\anaconda3\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.win-amd64-3.5\Release\talib\common.obj
  common.c
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\ta-lib\c\lib /LIBPATH:c:\users\matt\anaconda3\libs /LIBPATH:c:\users\matt\anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" ta_libc_cdr.lib /EXPORT:PyInit_common build\temp.win-amd64-3.5\Release\talib\common.obj /OUT:build\lib.win-amd64-3.5\talib\common.cp35-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.lib
  common.obj : warning LNK4197: export 'PyInit_common' specified multiple times; using first specification
     Creating library build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.lib and object build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.exp
  common.obj : error LNK2001: unresolved external symbol TA_SetUnstablePeriod
  common.obj : error LNK2001: unresolved external symbol TA_Shutdown
  common.obj : error LNK2001: unresolved external symbol TA_Initialize
  common.obj : error LNK2001: unresolved external symbol TA_GetUnstablePeriod
  common.obj : error LNK2001: unresolved external symbol TA_GetVersionString
  build\lib.win-amd64-3.5\talib\common.cp35-win_amd64.pyd : fatal error LNK1120: 5 unresolved externals
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120

  ----------------------------------------
  Failed building wheel for ta-lib
  Running setup.py clean for ta-lib
Failed to build ta-lib
Installing collected packages: ta-lib
  Running setup.py install for ta-lib ... error
    Complete output from command c:\users\matt\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Matt\\AppData\\Local\\Temp\\pip-build-vv02ktg_\\ta-lib\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Matt\AppData\Local\Temp\pip-qxmjmn5m-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.5
    creating build\lib.win-amd64-3.5\talib
    copying talib\deprecated.py -> build\lib.win-amd64-3.5\talib
    copying talib\test_abstract.py -> build\lib.win-amd64-3.5\talib
    copying talib\test_data.py -> build\lib.win-amd64-3.5\talib
    copying talib\test_func.py -> build\lib.win-amd64-3.5\talib
    copying talib\test_stream.py -> build\lib.win-amd64-3.5\talib
    copying talib\__init__.py -> build\lib.win-amd64-3.5\talib
    running build_ext
    skipping 'talib\common.c' Cython extension (up-to-date)
    building 'talib.common' extension
    creating build\temp.win-amd64-3.5
    creating build\temp.win-amd64-3.5\Release
    creating build\temp.win-amd64-3.5\Release\talib
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\matt\anaconda3\lib\site-packages\numpy\core\include -Ic:\ta-lib\c\include -Ic:\users\matt\anaconda3\include -Ic:\users\matt\anaconda3\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.win-amd64-3.5\Release\talib\common.obj
    common.c
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\ta-lib\c\lib /LIBPATH:c:\users\matt\anaconda3\libs /LIBPATH:c:\users\matt\anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" ta_libc_cdr.lib /EXPORT:PyInit_common build\temp.win-amd64-3.5\Release\talib\common.obj /OUT:build\lib.win-amd64-3.5\talib\common.cp35-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.lib
    common.obj : warning LNK4197: export 'PyInit_common' specified multiple times; using first specification
       Creating library build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.lib and object build\temp.win-amd64-3.5\Release\talib\common.cp35-win_amd64.exp
    common.obj : error LNK2001: unresolved external symbol TA_SetUnstablePeriod
    common.obj : error LNK2001: unresolved external symbol TA_Shutdown
    common.obj : error LNK2001: unresolved external symbol TA_Initialize
    common.obj : error LNK2001: unresolved external symbol TA_GetUnstablePeriod
    common.obj : error LNK2001: unresolved external symbol TA_GetVersionString
    build\lib.win-amd64-3.5\talib\common.cp35-win_amd64.pyd : fatal error LNK1120: 5 unresolved externals
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120

    ----------------------------------------
Command "c:\users\matt\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Matt\\AppData\\Local\\Temp\\pip-build-vv02ktg_\\ta-lib\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Matt\AppData\Local\Temp\pip-qxmjmn5m-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Matt\AppData\Local\Temp\pip-build-vv02ktg_\ta-lib\

Solution

You could try the «Unofficial Windows Binaries for Python Extension Packages
by Christoph Gohlke, Laboratory for Fluorescence Dynamics, University of California, Irvine.»

http://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib

He has different versions compiled depending on OS and Python versions. You probably need TA_Lib‑0.4.10‑cp35‑cp35m‑win_amd64.whl

Good luck.

Answered By – jtromans

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Понравилась статья? Поделить с друзьями:

Интересное по теме:

  • Pip install openpyxl ошибка
  • Pioneer fh x380ub ошибка усилителя
  • Pioneer ошибка усилителя спустя минуту
  • Pip install socket ошибка
  • Pip install requests ошибка

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии