[Docker] Install Python3 on Alpine Linux


Install Python3 on Alpine Linux

By default Python is not installed on Alpine Linux, if you want to install Python3 you can make use of the apk add command,

# apk add --update python3

fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz
(1/10) Installing libbz2 (1.0.8-r1)
(2/10) Installing expat (2.4.7-r0)
(3/10) Installing libffi (3.4.2-r1)
(4/10) Installing gdbm (1.22-r0)
(5/10) Installing xz-libs (5.2.5-r1)
(6/10) Installing libgcc (10.3.1_git20211027-r0)
(7/10) Installing libstdc++ (10.3.1_git20211027-r0)
(8/10) Installing mpdecimal (2.5.1-r1)
(9/10) Installing sqlite-libs (3.36.0-r0)
(10/10) Installing python3 (3.9.7-r4)
Executing busybox-1.34.1-r5.trigger
OK: 56 MiB in 28 packages
Advertisements
Try Out Code2care Dev Tools:

Advertisements

Advertisements
Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.