ImportError: No module named 'numpy' while installing scikit-learn

Question:

I am trying to test scikit-learn library, but didn’t manage to install it.

More details : I did install numpy, scipy, matplotlib and I can use them just fine. However, when I use pip (pip install -U scikit-learn), I get this error :

Partial import of sklearn during the build process.
Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:Users...scikit-learnsetup.py", setup_package()
    File "C:Users...scikit-learnsetup.py", from numpy.distutils.core import setup
ImportError: No module named 'numpy'

I couldn’t find anything about this.

I tried installing scikit-learn directly by using python setup.py and had the same problem. Any ideas?

Asked By: MiraLief

||

Answers:

I think there are something wrong with the installation of numpy.
Try download and reinstall following package (for Python 2.7):

http://downloads.sourceforge.net/project/numpy/NumPy/1.9.2/numpy-1.9.2-win32-superpack-python2.7.exe?r=&ts=1442420256&use_mirror=netix

Answered By: Samuel
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.