• Register
0 votes
267 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

Please log in or register to answer this question.

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 190 views
190 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 27 views
27 views
Problem: runtimewarning: numpy.dtype Size changing may indicate binary incompatibility. expected 96, got 88
asked Feb 23 Muneeb Saadii 127k points
0 votes
1 answer 44 views
44 views
Problem : Any clue: Pandas data cast to numpy dtype of object. check input data with np.asarray(data)..
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 5.7K views
5.7K 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 27 views
27 views
Problem input contains nan, infinity or a value too large for dtype('float64').
asked Feb 11 charles mathews 5.5k points
0 votes
1 answer 53 views
53 views
Problem: runtimewarning: divide by zero encountered in double_scalars
asked Feb 16 Ethan ross 2.6k points
0 votes
1 answer 21 views
21 views
Problem: Why is this still happening: Cannot cast array data from dtype('float64') to dtype('<u32') according to the rule 'safe'
asked Mar 13 Wafa Abu Yousef 6.1k points
0 votes
1 answer 2.4K views
2.4K 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, 2020 mphil 2.3k points
0 votes
1 answer 2 views
2 views
Problem Any suggestion about solving this error &ndash; &ldquo;typeerror: type numpy.ndarray doesn't define __round__ method&rdquo; ?
asked 16 hours ago anika11 2.5k points
0 votes
1 answer 1 view
1 view
Problem: Why does it always show this error- &ldquo;Type numpy.ndarray doesn't define __round__ method&rdquo; ?
asked 18 hours ago anika11 2.5k points