Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing x64 version of TA-Lib #1

Open
aberja opened this issue Mar 5, 2017 · 3 comments
Open

Installing x64 version of TA-Lib #1

aberja opened this issue Mar 5, 2017 · 3 comments

Comments

@aberja
Copy link

aberja commented Mar 5, 2017

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.

@aberja aberja changed the title Installling x64 version of TA-Lib Installing x64 version of TA-Lib Mar 8, 2017
@ranaroussi
Copy link
Owner

Thanks for sharing!

@aberja
Copy link
Author

aberja commented May 1, 2017

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
Copy link

kew96 commented Mar 26, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants