TA-Lib / ta-lib-python

Python wrapper for TA-Lib (http://ta-lib.org/).
http://ta-lib.github.io/ta-lib-python
Other
9.49k stars 1.74k forks source link

I cant import Talib . help me pls. #432

Closed pawarison closed 3 years ago

pawarison commented 3 years ago

ValueError Traceback (most recent call last)

in ----> 1 import talib ~\anaconda3\lib\site-packages\talib\__init__.py in 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
mrjbq7 commented 3 years ago

Some online suggestions say you should try uninstalling and reinstalling numpy:

pip uninstall numpy
pip install numpy
mrjbq7 commented 3 years ago

This might relate to some numpy changes in 1.20, I've seen this when it's building against a different numpy than it runs with.

mujeebishaque commented 2 years ago
pip uninstall numpy
pip install --upgrade numpy

Had issues with installation and it was as easy as upgrading numpy while I was running nmake commands, SMH.