- Newest
- Most votes
- Most comments
Hello,
On my side the command python3 -m ensurepip --version returns correctly the version. But indeed, pip is not installed by default, you can install it with the command yum install python3-pip if needed.
[root@ip-X-X-X-X ec2-user]# docker run -it public.ecr.aws/amazonlinux/amazonlinux:2023 /bin/bash
bash-5.2# python3 --version
Python 3.9.16
bash-5.2# python3 -m ensurepip --version
pip 21.3.1
It looks like they fixed the issue in an update a few hours after my original post:
Got this message back from support:
I have confirmed that the issue is also present on the latest AL2023 AMIs (2023.6.20241209.0) and isn't isolated to the AL2023 container images available in ECR: python3 -m ensurepip /usr/bin/python3: Error while finding module specification for 'ensurepip.main' (ImportError: cannot import name '_bundled' from partially initialized module 'ensurepip' (most likely due to a circular import) (/usr/lib64/python3.9/ensurepip/init.py))
An internal ticket has been created with the internal AL2023 team for them to investigate and remediate this problem. I will keep you updated around this and let you know as soon as I have more information. In the meantime, please use the 2023.6.20241121.0 AL2023 container image where ensurepip is working as expected.
My apologies for the disruption this has caused. I will keep you updated. If you have any further questions or issues around this, please don't hesitate to reach out and I will be glad to assist further. All the best.
It does look fixed now
Relevant content
- asked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
