I have installed Talib library in python. But after import Talib command in Jupiter notebook, following error generated.
ValueError: numpy.ufunc size changed, may indicate binary incompatibility.
Expected 216 from C header, got 192 from PyObject
Please advise me to fix above error.
Hi Vivek,
This error is usually caused by incompatible package versions.
Can you please share the following to help you further.
- the output of the !pip list command in your Jupyter notebook
- your operating system name and version along with 32/64 bit. (Can be found in system settings/control panel of the computer)
- the version of Anaconda (Run conda --version in your command prompt)
- the version of Python installed on your system. (See this link)
Thanks!
I have solved above incompatibility issue of numpy. i gave following command in anaconda prompt.
pip install numpy --upgrade
So numpy is upgraded to 1.20.1
Now, while importing Talib, no error is generated.
Thanks for your advice.
regrds
Vivek