• Register
0 votes

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.


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.


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 128 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 4.5K 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.8K 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 8 views
Problem: At the bottom of the code you have to add these lines: simFlips(100,100) show() Here is the error that I get when I run it on ubuntu: Traceback (most recent call last): File "coin.py", line 36, in <module> simFlips(100,100) File "coin.py", ... (heads - tails)) AttributeError: 'numpy.ndarray' object has no attribute 'append' Please tell me what I'm doing wrong that gives me the last error
asked Jan 11 Mashhoodch 6.7k points
0 votes
1 answer 281 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, 2020 Raphael Pacheco 4.9k points
1 vote
1 answer 15 views
Problem: Hello Kodlogs, I was trying to perform some mathematical operation like finding minimum, maximum, average e.t.c. from an array. I can do it using the simple method; adding all the all elements and then divide it by the number of elements. I want to make a ... with less line of codes. Could any of you please give me an example of that type of pram? I will appreciate your help. Thanks.
asked Jun 25, 2020 adamSw 11.3k points
1 vote
1 answer 34 views
Problem: Yesterday I uninstalled Anaconda and shut down my computer. Right now, I&rsquo;ve freshly installed the Anaconda again on my laptop to run a project. Suddenly, I am facing an ImportError to run a python project. ImportError: Missing required dependencies ['numpy'] ... but it produces the same error again and again. Do you have any clear idea about this problem and how to solve it?
asked Jun 20, 2020 adamSw 11.3k points
0 votes
1 answer 621 views
Problem: Recently I have joined new project on python and numpy. My below code is returning me below error: Attributeerror: 'numpy.ndarray' object has no attribute 'append' . Please find my code below for the reference: class1 = np.array([]) #It creates 2 ... to print my results in the scatter graphic with the two colors where I can try to identify the visually the class1 and class2 elements.
asked Jun 17, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 661 views
Problem : I want to learn the Machine Learning but I am unabe to resolve below error. My Specs : · Mac High Sierra 10.13.2 · Python3.4.5 · Numpy1.13.3 Used below Command: $ python3 -c "import jupyter, matplotlib, numpy, pandas, scipy, sklearn" I am ... to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace --force' to build the C extensions first.
asked Dec 4, 2019 alecxe 7.5k points