Not able to install talib

Course Name: Swing Trading Strategies, Section No: 9, Unit No: 11, Unit type: Notebook



Windows 10 64

Python version 3.7.6

Already installed 


Trying to import talib and there is an error:
 
ValueError                                Traceback (most recent call last)
<ipython-input-6-39fbdb69ff19> in <module>
----> 1 import talib as ta

~\anaconda3\lib\site-packages\talib_init_.py in <module>
50 return wrapper
51
—> 52 from ._ta_lib import (
53 _ta_initialize, _ta_shutdown, MA_Type, ta_version,
54 _ta_set_unstable_period as set_unstable_period,

talib_ta_lib.pyx in init talib._ta_lib()

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

Hi Marcas,



You can refer to this article on How to install Ta-Lib in Python. This covers the step by step installation of TA-Lib in Python.



If you still face the issue, feel free to post here. 



Thanks!

try this:

#conda install -c conda-forge ta-lib

Hi Marcus,



The error is might be due to the NumPy version mismatch. You can try upgrading the Numpy.



Can also refer to this link to know more about a similar error.



If you still face the issue, you can send the Python and current Numpy version so that we can look into this.



Thanks!