Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Cufflink installation error

Hi Everyone,
New to the forum. I am having difficulty installing Cufflink and then importing into jupyter notebook.
I get the following error:
Any help is greatly appreciated.

ModuleNotFoundError: No module named ‘talib’

pip install talib yielded the following:
Collecting talib
Could not find a version that satisfies the requirement talib (from versions: )
No matching distribution found for talib

pip install ta-lib yields the following:

warnings.warn(‘Cannot find ta-lib library, installation may fail.’)
running install
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/talib
copying talib/init.py -> build/lib.macosx-10.7-x86_64-3.6/talib
copying talib/deprecated.py -> build/lib.macosx-10.7-x86_64-3.6/talib
copying talib/test_abstract.py -> build/lib.macosx-10.7-x86_64-3.6/talib
copying talib/test_data.py -> build/lib.macosx-10.7-x86_64-3.6/talib
copying talib/test_func.py -> build/lib.macosx-10.7-x86_64-3.6/talib
copying talib/test_stream.py -> build/lib.macosx-10.7-x86_64-3.6/talib
running build_ext
skipping ‘talib/common.c’ Cython extension (up-to-date)
building ‘talib.common’ extension
creating build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/talib
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/coder/anaconda/include -arch x86_64 -I/Users/coder/anaconda/include -arch x86_64 -I/Users/coder/anaconda/lib/python3.6/site-packages/numpy/core/include -I/usr/include -I/usr/local/include -I/opt/include -I/opt/local/include -I/Users/coder/anaconda/include/python3.6m -c talib/common.c -o build/temp.macosx-10.7-x86_64-3.6/talib/common.o
talib/common.c:242:10: fatal error: ‘ta-lib/ta_defs.h’ file not found
#include “ta-lib/ta_defs.h”
^
1 error generated.
error: command ‘gcc’ failed with exit status 1

Not really the ‘right’ way to solve this, but it’s a workaround for now:

wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz && \
tar -xzf ta-lib-0.4.0-src.tar.gz && \
cd ta-lib && \
./configure && \
make && \
make install