python3.8 devel package for amazon linux
Asked Answered
C

2

7

I'm building a docker image based on amazonlinux:2.0.20210126.0, my software needs to compile and requires Python.h and other dev resources. I'm installing python3.8 like this in my docker file:

RUN amazon-linux-extras enable python3.8
RUN yum install -y python3.8

but can't find any devel packages for python3.8 on amazonlinux repos. Tried looking for python3.8-devel or libpython3.8-dev without any success.

Anyone had a similar experience with amazonlinux?

Cyclist answered 18/2, 2021 at 7:55 Comment(0)
M
6

You don't need to get it out of Amazon Extras anymore. It's available via yum for Amazon Linux2.

Try

yum install -y python38 python38-devel
Medium answered 30/3, 2021 at 1:59 Comment(1)
errors: no package python38 or python38-devel abailableBenyamin
N
1

Try this order:

RUN amazon-linux-extras enable python3.8
RUN yum install -y python38-devel

It appears that python38-devel only becomes available after python3.8 is installed.

Nisbet answered 10/4 at 22:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.