ranaroussi/futuresio-webinars

Installing x64 version of TA-Lib

aberja opened this issue · 3 comments

Hi Ran,

Really enjoyed your futures.io webinar and looking forward to your future presentations.

I was working through your Jupyter Notebook and ran into an issue with TA-lib. I ultimately resolved the matter, but thought it might help others if I provided some details on how I resolved it.

The issue arose because I am running the 64 bit version of Anaconda and needed to create a 64 bit version of TA-Lib. The 32 bit version of TA-lib would not run. The instructions on how to do this in Windows 10 can be found here: TA-Lib/ta-lib-python#127 (comment) I've included the instructions below for convenience with a few of my comments in parentheses:

  1. Download and Unzip ta-lib-0.4.0-msvc.zip

  2. Move the Unzipped Folder ta-lib to C:\

  3. Download and Install Visual Studio Community 2015

    • Remember to Select Visual C++ Feature
  4. Build TA-Lib Library

    • From Windows Start Menu, Start VS2015 x64 Native Tools Command Prompt
      (An alternative method is documented here: https://msdn.microsoft.com/en-us/library/x4d2c09s.aspx And is summarized below:
      - Open a Windows Command Prompt
      - type: cd "C:\Progam Files (x86)\Microsoft Visual Studio 14.0\VC" + ENTER
      - type: vcvarsall amd64 + ENTER
      NOTE: if you don't have vcvarsall in the above directory, then you probably don't have Visual C++ installed in Visual Studio Community 2015. To install it:
      - Double click on the VS install file (i.e. vs_community_ENU),
      - Choose modify in the bottom left,
      - Expand the Programming language tree, and check Visual C++,
      - Click on Next and then Update )
  5. Move to C:\ta-lib\c\make\cdr\win32\msvc

  6. Build the Library nmake ( just type: nmake + ENTER )

  7. Then pip install ta-lib (from the Anaconda Command Prompt)

I hope the above helps.

Thanks for sharing!

Just a heads up if you are trying to install ta-lib using Visual Studio Community 2017, you may run into issues because it appears that ta-lib currently requires Visual C++ 14.0 while 2017 installs 17.0. I tried also installing 14.0 but under 2017, but that also did not work.

kew96 commented

Thank you! Been searching for a solution for a couple days now and am relieved I finally found a solution actually explaining the steps.