ValueError: numpy.dtype has the wrong size, try recompiling
I got an error like this and was in trouble because I couldn't do from sklearn.feature_extraction.text import Count Vectorizer
.
I,
I put everything in with pip install
, but in the end I solved it by doing the following.
However, I don't understand at all in the first place.
sudo pip uninstall numpy
sudo pip uninstall scikit-learn
sudo easy_install -U numpy
sudo pip install scikit-learn
After putting numpy from ʻeasy_install`, it works.
Recommended Posts