在AWS EC2中运行sklearn时出错

2024-04-29 06:59:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我今天刚开始使用awsec2,在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

但这只会产生这样的结果:“没有包构建必要的可用性。”如果有人能帮助我解决这个问题,我将不胜感激。谢谢!你知道吗


Tags: 模块installhttpsdevcomrawsh错误