• Register
0 votes
89 views

Problem :

I have below error for trying to load the saved SVM model. I have tried uninstalling the sklearn, NumPy and SciPy, and reinstalling a latest versions all-together again (using pip). I am still facing below error.

“Runtimewarning : Numpy.dtype size changed, may indicate binary incompatibility”

How to get rid of the above mentioned issue?

7 5 2
3,870 points

1 Answer

0 votes

Solution :

This issue is related to your recently downloaded new numpy version (1.15.0)

You can just downgrade your numpy and your problem will be fixed using below commands:

sudo pip uninstall numpy
sudo pip install numpy==1.14.5

Finally the numpy 1.15.1 version is released so a warning issues are fixed.

sudo pip install numpy==1.15.1

This is working for me.

OR

Above issue was gone after I just installed the libraries through apt install as shown below:

For your Python3,

pip3 uninstall -y numpy scipy pandas scikit-learn
sudo apt update
sudo apt install python3-numpy python3-scipy python3-pandas python3-sklearn

For your Python2,

pip uninstall -y numpy scipy pandas scikit-learn
sudo apt update
sudo apt install python-numpy python-scipy python-pandas python-sklearn

Hope that helps you in resolving your issues.

OR

If you are in the anaconda environment please use as shown below:

conda update --all

 Hope the above mentioned solutions help you in resolving your issues.

9 7 4
38,600 points

Related questions

0 votes
1 answer 92 views
92 views
Problem : Help needed with this error runtimewarning: numpy.dtype size changed, may indicate binary incompatibility. expected 96, got 88
asked Nov 8, 2019 peterlaw 6.9k points
0 votes
1 answer 3K views
3K views
Problem : I have the pandas data frame with some of the categorical predictors or variables as 0 & 1, and some of the numeric variables. When I fit that to a stasmodel like below : est = sm.OLS(y, X).fit() It throws the below error : Pandas data ... hundreds of variables. For that I have concatenated the 3 pandas DataFrames to come up with the final DataFrame to be used in the model building.
asked Dec 18, 2019 alecxe 7.5k points
0 votes
1 answer 1.2K views
1.2K views
Problem : Currently I am trying to learn NumPy. I am trying to execute my code but I am facing following error while trying to use my code. TypeError: Cannot cast array data from dtype('float64')            to dtype('S32') according to the rule 'safe' Please Note : My NumPy version is 1.11.0. How can I fix the above error ?
asked Feb 17 mphil 2.3k points
0 votes
1 answer 56 views
56 views
Problem: I have currently started learning about using the pandas in ipython notebook: import pandas as pd But I have encountered the below error on my above line of code: AttributeError  Traceback (most recent call last) <ipython-input-17-c7ecb2b0a99d> in <module>() ----> 1 from ... ' I have no knowledge on how to fix the above error, what is a problem here? My python's version is currently 3.6
asked Aug 10 Raphael Pacheco 4.9k points