terminalmoduleta-lib

Module installation FAIL: pip install TA-Lib (ERROR: Command errored out with exit status 1)


I am trying to install TA-Lib with the following command in the terminal.

pip install TA-Lib

Unfortunatley, I got the following error message:

Building wheel for TA-Lib (setup.py) ... error
ERROR: Command errored out with exit status 1......

Many thanks in advance for your help !


Solution

  • Installation process

    install gcc first

    
       1. tar -xzf ta-lib-0.4.0-src.tar.gz
       2. cd ta-lib/
       3. ./configure --prefix=/usr
       4. make
       5. sudo make install
    
       6. export TA_LIBRARY_PATH=/usr/lib
       7. export TA_INCLUDE_PATH=/usr/include
       8. pip install ta-lib
    

    if still getting error then install

    
        1. sudo apt install python3-dev
    

    and then run

    
        1. pip install ta-lib