Python TA-Lib install problems

后端 未结 10 1192
盖世英雄少女心
盖世英雄少女心 2020-12-31 19:55

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

相关标签:
10条回答
  • 2020-12-31 20:01

    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.

    0 讨论(0)
  • 2020-12-31 20:01

    While there are similar answers but I thought I would take a crack at it.

    1. 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

    2. 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.

    3. 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/

    0 讨论(0)
  • 2020-12-31 20:09

    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..

    0 讨论(0)
  • 2020-12-31 20:12

    you can proceed as follows:

    1. 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)

    2. Download the package and unzip in ...\Python\Python35\Scripts

    3. 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

    4. installed!

    0 讨论(0)
  • 2020-12-31 20:13

    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

    1. Install Visual C++ Build tools (https://www.youtube.com/watch?v=P4_R34Lb-PE) https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019
    2. While installing Build tools make sure you have selected Windows10 SDK that resolved some io.h file not found error. I had to modify the installation multiple times by adding Visual C++ components.
    1. After this 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.

    0 讨论(0)
  • 2020-12-31 20:17

    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
    
    0 讨论(0)
提交回复
热议问题