Items that cannot be imported with sklearn

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

Items that cannot be imported with sklearn
Tensorflow cannot be imported
Import libraries that cannot be pip installed with PyCharm
Options when installing libraries that cannot be piped with pyenv
Examples and solutions that cannot be optimized well with scipy.optimize.least_squares
Parallel computing (pathos) when dealing with objects that cannot be pickled
Python modules with "-(hyphen)" cannot be removed
Measures that pip install cannot be done with pycharm or import ssl cannot be done
Address to the bug that node.surface cannot be obtained with python3 + mecab
Project cannot be created with Python3.5 (Windows) + django1.7.1
When Html cannot be output with Jupyter Notebook
File types that can be used with Go
When contour map cannot be drawn with APLpy
Summary of examples that cannot be pyTorch backward
About the matter that localhost: 4040 cannot be accessed after running Spark with Docker
No module named'distutils.util' cannot be used with get-pip.py
List packages that can be updated with pip
Matplotlib etc. cannot be imported in VirtualEnv environment
PIL cannot be installed by virtualenv with pyenv
The problem that the ifconfig command cannot be used
Workaround for the problem that UTF-8 Japanese mail cannot be sent with Flask-Mail (Python3)
Color list that can be set with tkinter (memorial)
Python knowledge notes that can be used with AtCoder
[android] When AVD cannot be used with permission denied
Limits that can be analyzed at once with MeCab
[Raspberry Pi] Scraping of web pages that cannot be obtained with python requests + Beautiful Soup
Problem that pip install cannot be done with pyenv + Yosemite (error: command'clang' failed with exit status 1)
tar.gz cannot be expanded
Dealing with the error that HTTP fetch error occurs in gpg and the key cannot be obtained
Solution when the image cannot be displayed with tkinter [python]
Video cannot be loaded with Spyder in Python development environment
When Times New Roman cannot be used with matplotlib (Ubuntu)
Error that Qt plugin "cocoa" cannot be found in python-opencv
I investigated the pretreatment that can be done with PyCaret
Let's make a diagram that can be clicked with IPython
Evaluation index that can be specified in GridSearchCV of sklearn
Convert GRIB2 format weather data that cannot be opened with pygrib to netCDF and visualize it