ImportError: no module named numpy.distutils.core (installing Ubuntu xgboost)

I recently downloaded a working version of Ubuntu 14.04 along with Windows 10.

My PC settings: 4 GB RAM, 64 bit

I installed Anaconda after downloading the file using: bash Anaconda3-2.5.0-Linux-x86_64.sh

Installation was successful.

Now, in my ubuntu terminal, I have done the steps as stated in http://xgboost.readthedocs.org/en/latest/build.html#building-on-ubuntu-debian

The construction was also successful, and I could build libxgboost.so

  1. sudo apt-get install python-setuptools (successful)
  2. cd python-package
  3. sudo python setup.py install

Command 5. returns an error after many lines:

'ImportError: no module named numpy.distutils.core'

Can someone suggest how to get rid of this error so that I can install xgboost?

+6
source share
2 answers

I had the same problem today. I believe the problem is that the instructions you provided are out of date for installing Python, since they are now enabled using pip install .

Delete the xgboost directory created by your attempt to install and run:

 pip install xgboost 

Everything should work with one team. See Also Python-specific XGBoost Installation Instructions .

+10
source

This issue is reported on xgboost github

Decision

sudo -s

install python setup.py

instead

cd python-package; sudo python setup.py install

+3
source

All Articles