简体   繁体   中英

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?

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

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

On Amazon Linux 2, install gcc

yum install gcc

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM