Skip to content

Error when installing #391

@lo-ve-ly

Description

@lo-ve-ly

Hi,
Thank you for your fabulous library - have heard a lot about it. I just tried to install it via pip install ta-lib and receive this error message:

I have C++ Redistributable 2015 64 installed

Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 7.19.0 -- An enhanced Interactive Python.

pip install ta-lib
Collecting ta-libNote: you may need to restart the kernel to use updated packages.
Using cached TA-Lib-0.4.19.tar.gz (267 kB)
Requirement already satisfied: numpy in c:\users\selected\anaconda3\lib\site-packages (from ta-lib) (1.19.2)
Building wheels for collected packages: ta-lib
Building wheel for ta-lib (setup.py): started
Building wheel for ta-lib (setup.py): finished with status 'error'
Running setup.py clean for ta-lib

Failed to build ta-lib
Installing collected packages: ta-lib
    Running setup.py install for ta-lib: started
    Running setup.py install for ta-lib: finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\Selected\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Selected\\AppData\\Local\\Temp\\pip-install-tbwft__9\\ta-lib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Selected\\AppData\\Local\\Temp\\pip-install-tbwft__9\\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\Selected\AppData\Local\Temp\pip-wheel-hc2bvvlk'
       cwd: C:\Users\Selected\AppData\Local\Temp\pip-install-tbwft__9\ta-lib\
  Complete output (21 lines):
  C:\Users\Selected\AppData\Local\Temp\pip-install-tbwft__9\ta-lib\setup.py:71: UserWarning: Cannot find ta-lib library, installation may fail.
    warnings.warn('Cannot find ta-lib library, installation may fail.')
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.8
  creating build\lib.win-amd64-3.8\talib
  copying talib\abstract.py -> build\lib.win-amd64-3.8\talib
  copying talib\deprecated.py -> build\lib.win-amd64-3.8\talib
  copying talib\stream.py -> build\lib.win-amd64-3.8\talib
  copying talib\test_abstract.py -> build\lib.win-amd64-3.8\talib
  copying talib\test_data.py -> build\lib.win-amd64-3.8\talib
  copying talib\test_func.py -> build\lib.win-amd64-3.8\talib
  copying talib\test_pandas.py -> build\lib.win-amd64-3.8\talib
  copying talib\test_stream.py -> build\lib.win-amd64-3.8\talib
  copying talib\__init__.py -> build\lib.win-amd64-3.8\talib
  running build_ext
  skipping 'talib\_ta_lib.c' Cython extension (up-to-date)
  building 'talib._ta_lib' extension
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  ----------------------------------------
  ERROR: Failed building wheel for ta-lib
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\Selected\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Selected\\AppData\\Local\\Temp\\pip-install-tbwft__9\\ta-lib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Selected\\AppData\\Local\\Temp\\pip-install-tbwft__9\\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\Selected\AppData\Local\Temp\pip-record-ubzrrswy\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Selected\anaconda3\Include\ta-lib'
         cwd: C:\Users\Selected\AppData\Local\Temp\pip-install-tbwft__9\ta-lib\
    Complete output (21 lines):
    C:\Users\Selected\AppData\Local\Temp\pip-install-tbwft__9\ta-lib\setup.py:71: 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
    creating build
    creating build\lib.win-amd64-3.8
    creating build\lib.win-amd64-3.8\talib
    copying talib\abstract.py -> build\lib.win-amd64-3.8\talib
    copying talib\deprecated.py -> build\lib.win-amd64-3.8\talib
    copying talib\stream.py -> build\lib.win-amd64-3.8\talib
    copying talib\test_abstract.py -> build\lib.win-amd64-3.8\talib
    copying talib\test_data.py -> build\lib.win-amd64-3.8\talib
    copying talib\test_func.py -> build\lib.win-amd64-3.8\talib
    copying talib\test_pandas.py -> build\lib.win-amd64-3.8\talib
    copying talib\test_stream.py -> build\lib.win-amd64-3.8\talib
    copying talib\__init__.py -> build\lib.win-amd64-3.8\talib
    running build_ext
    skipping 'talib\_ta_lib.c' Cython extension (up-to-date)
    building 'talib._ta_lib' extension
    error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Selected\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Selected\\AppData\\Local\\Temp\\pip-install-tbwft__9\\ta-lib\\setup.py'"'"'; __file__='"'"'C:\\Users\\Selected\\AppData\\Local\\Temp\\pip-install-tbwft__9\\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\Selected\AppData\Local\Temp\pip-record-ubzrrswy\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Selected\anaconda3\Include\ta-lib' Check the logs for full command output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions