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
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 version. You probably need TA_Lib‑0.4.10‑cp35‑cp35m‑win_amd64.whl
Good luck.
While there are similar answers but I thought I would take a crack at it.
Go to https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib and download the relevant .whl file.
From the info given, I would suggest the file name, TA_Lib‑0.4.17‑cp35‑cp35m‑win_amd64.whl
I find Anaconda environment good for python, so I would suggest installing Anaconda and placing the file in the same folder location which is shown on the Anaconda prompt.
screenshot of Anaconda installer
In the Anaconda prompt, use the pip install command with the file name of the downloaded file.
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`
If there is no error, then it implies that we have successfully installed Ta-Lib.
You should get something like this: install Ta-lib
Source: https://blog.quantinsti.com/install-ta-lib-python/
Install an updated Microsoft visual c++ Redistributable for Visual Studio 2015, 2017 and 2019:
https://support.microsoft.com/he-il/help/2977003/the-latest-supported-visual-c-downloads
worked for me..
you can proceed as follows:
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)
Download the package and unzip in ...\Python\Python35\Scripts
Go on cmd
and in the same directory (...\Python\Python35\Scripts
) execute the following command:
pip3 install TA_Lib-0.4.17-cp35-cp35m-win_amd64.whl
installed!
Had to spend good amount of time even with so many people facing the same issue. Long story short WINDOWS ***T. I am on Windows 10 running python3.7
Enough of ranting here are the steps that worked for me
pip3 install ta-lib
or python3 -m pip install ta-lib
didn't work. What worked was downloading those .whl files as mentioned above [https://www.lfd.uci.edu/~gohlke/pythonlibs] and since I have python3.7 I had to select the one with cp37 (TA_Lib-0.4.18-cp37-cp37m-win_amd64.whl) in it.I hope I am not missing any step but by the time I figured above steps I was 4 hours older.
Download related package from
https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib
TA_Lib‑0.4.17‑cp36‑cp36m‑win_amd64.whl (Since I have python 3.6, cp36)
and use
pip install TA_Lib‑0.4.17‑cp36‑cp36m‑win_amd64.whl