ImportError:没有名为numpy.distutils.core的模块(Ubuntu xgboost安装)

Sid*_*tha 7 python numpy github ubuntu-14.04 xgboost

我最近在Windows 10下载了Ubuntu 14.04桌面版.

我的PC配置是:4 GB RAM,64位

我使用以下命令安装Anaconda:bash Anaconda3-2.5.0-Linux-x86_64.sh

安装成功.

现在在我的ubuntu终端中,我按照http://xgboost.readthedocs.org/en/latest/build.html#building-on-ubuntu-debian上的说明进行了操作.

  1. 安装了最近的GNU C++编译器 - >成功
  2. git clone --recursive https://github.com/dmlc/xgboost cd xgboost; make -j4

建设也很成功,我可以建立'libxgboost.so'

  1. sudo apt-get install python-setuptools(成功)
  2. cd python-package
  3. sudo python setup.py安装

5.命令在很多行后返回错误:

'ImportError:没有名为numpy.distutils.core的模块'

任何人都可以建议如何摆脱这个错误,以便我可以安装xgboost?

Jac*_*cob 14

我今天遇到了同样的问题.我相信问题是您列出的Python安装过时的说明已经过时了,因为它们现在已经启用了pip install.

删除xgboost上面安装尝试创建的目录,然后执行:

pip install xgboost
Run Code Online (Sandbox Code Playgroud)

它应该都可以使用一个命令.另请参阅Python特定XGBoost安装说明.