JMV12
JMV12

Reputation: 1045

Pip Install On Amazon Linux ec2 PEP 517 Error

I'm trying to pip install autogluon on an amazon linux ec2 instance. All other pip installs have worked so far, but pip installing autogluon throws the following error:

ERROR: Failed building wheel for bottleneck
Failed to build ConfigSpace psutil bottleneck
ERROR: Could not build wheels for ConfigSpace, bottleneck which use PEP 517 and cannot be installed directly

Is this an inherent issue when trying to install these packages on an ec2?

Upvotes: 0

Views: 1457

Answers (3)

Rocky
Rocky

Reputation: 401

On Amazon Linux 2, install gcc

yum install gcc

Upvotes: 2

Yuxin1994
Yuxin1994

Reputation: 41

I got the same error and tried

sudo yum install python3-devel

and got autogluon installed! fatal error: Python.h: No such file or directory

Upvotes: 3

PApostol
PApostol

Reputation: 2292

This sounds more like a pip issue, it's unlikely that it relates to the EC2 itself. Try the following:

python -m pip install pip --upgrade
python -m pip install autogluon --no-use-pep517

Upvotes: 1

Related Questions