在AWS EC2中运行sklearn的错误

时间:2017-02-03 05:27:54

标签: python amazon-ec2 scikit-learn

我今天刚开始使用AWS EC2并遇到了sklearn的一些错误。我使用以下行安装了sklearn模块:

curl https://gist.githubusercontent.com/dacamo76/4780765/raw/c3779996d8f6b13caaaa48d33aa1585684c7f8e6/scikit-learn-install.sh | sh

这是源于这个问题:

https://gist.github.com/dacamo76/4780765

但是,在尝试运行python脚本后,我收到错误:

ImportError: No module named sklearn.

我推断它与依赖关系有关,所以我试图实现提供的解决方案here

我首先尝试使用以下行构建依赖项:

sudo yum install build-essential python-dev python-setuptools python-numpy python-scipy libatlas-dev libatlas3gf-base

但这只会产生如下输出:'没有包构建 - 必不可少。'如果有人可以帮我解决这个问题,那将非常感激。谢谢!

0 个答案:

没有答案