如果有人能告诉我如何在EC2上安装XGBoost,我将非常感激。我已经设置了EC2实例并安装了Numpy / SKlearn,如下所示:
sudo yum -y install gcc-c++ python27-devel atlas-sse3-devel lapack-devel
wget https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.11.2.tar.gz
tar xzf virtualenv-1.11.2.tar.gz
python27 virtualenv-1.11.2/virtualenv.py sk-learn
. sk-learn/bin/activate
pip install numpy
我的工作站上有一个xgb的工作实现,我通过以下方式安装:pip install xgboost。但是当我在EC2上尝试这个时,我得到错误:
(sk-learn)[ec2-user@ip-172-31-20-221 ~]$ pip install xgboost
Downloading/unpacking xgboost
Could not find a version that satisfies the requirement xgboost (from versions: 0.4a15, 0.4a22, 0.4a28, 0.4a26, 0.4a25, 0.4a30, 0.4a12, 0.4a14, 0.4a23, 0.4a19, 0.4a29, 0.4a21, 0.4a13, 0.4a18, 0.4a24, 0.4a20, 0.4a27)
Cleaning up...
No distributions matching the version for xgboost
Storing debug log for failure in /home/ec2-user/.pip/pip.log
答案 0 :(得分:0)
我刚刚意识到,我需要先升级pip:
pip install --upgrade pip
我会留下其他人的问题。谢谢!