New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/bin/sh: pip3: not found error on alpine 3.12 #91
Comments
You can also do: |
@ncopa: Thanks for the suggestion, we will update the pip3 command externally. |
pip3 doesn't come with |
This is my first step and i am getting this error from alpine:latest RUN apk add --no-cache python3-dev /bin/sh: pip3: not found |
See: alpinelinux/docker-alpine#91 Add curl and jq package in order to retreive updated keys directly from GitHub.
Hello team!
We are getting a new issue after moving from alpine version 3.11 to 3.12(latest). Please find the docker image snippet and where the error occurs:
RUN apk add --no-cache python3 openssl ca-certificates git openssh sshpass
&& apk --update add --virtual build-dependencies python3-dev libffi-dev openssl-dev build-base
&& pip3 install --upgrade pip cffi
Stacktrace:
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
(1/24) Installing ca-certificates (20191127-r2)
(2/24) Installing nghttp2-libs (1.40.0-r0)
(3/24) Installing libcurl (7.69.1-r0)
(4/24) Installing expat (2.2.9-r1)
(5/24) Installing pcre2 (10.35-r0)
(6/24) Installing git (2.26.2-r0)
(7/24) Installing openssh-keygen (8.3_p1-r0)
(8/24) Installing ncurses-terminfo-base (6.2_p20200523-r0)
(9/24) Installing ncurses-libs (6.2_p20200523-r0)
(10/24) Installing libedit (20191231.3.1-r0)
(11/24) Installing openssh-client (8.3_p1-r0)
(12/24) Installing openssh-sftp-server (8.3_p1-r0)
(13/24) Installing openssh-server-common (8.3_p1-r0)
(14/24) Installing openssh-server (8.3_p1-r0)
(15/24) Installing openssh (8.3_p1-r0)
(16/24) Installing openssl (1.1.1g-r0)
(17/24) Installing libbz2 (1.0.8-r1)
(18/24) Installing libffi (3.3-r2)
(19/24) Installing gdbm (1.13-r1)
(20/24) Installing xz-libs (5.2.5-r0)
(21/24) Installing readline (8.0.4-r0)
(22/24) Installing sqlite-libs (3.32.1-r0)
(23/24) Installing python3 (3.8.3-r0)
(24/24) Installing sshpass (1.06-r0)
Executing busybox-1.31.1-r16.trigger
Executing ca-certificates-20191127-r2.trigger
OK: 75 MiB in 38 packages
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
(1/26) Installing pkgconf (1.7.2-r0)
(2/26) Installing python3-dev (3.8.3-r0)
(3/26) Installing linux-headers (5.4.5-r1)
(4/26) Installing libffi-dev (3.3-r2)
(5/26) Installing openssl-dev (1.1.1g-r0)
(6/26) Installing libgcc (9.3.0-r2)
(7/26) Installing libstdc++ (9.3.0-r2)
(8/26) Installing binutils (2.34-r1)
(9/26) Installing libmagic (5.38-r0)
(10/26) Installing file (5.38-r0)
(11/26) Installing gmp (6.2.0-r0)
(12/26) Installing isl (0.18-r0)
(13/26) Installing libgomp (9.3.0-r2)
(14/26) Installing libatomic (9.3.0-r2)
(15/26) Installing libgphobos (9.3.0-r2)
(16/26) Installing mpfr4 (4.0.2-r4)
(17/26) Installing mpc1 (1.1.0-r1)
(18/26) Installing gcc (9.3.0-r2)
(19/26) Installing musl-dev (1.1.24-r8)
(20/26) Installing libc-dev (0.7.2-r3)
(21/26) Installing g++ (9.3.0-r2)
(22/26) Installing make (4.3-r0)
(23/26) Installing fortify-headers (1.1-r0)
(24/26) Installing patch (2.7.6-r6)
(25/26) Installing build-base (0.5-r2)
(26/26) Installing build-dependencies (20200601.084206)
Executing busybox-1.31.1-r16.trigger
OK: 330 MiB in 64 packages
/bin/sh: pip3: not found
Error:
/bin/sh: pip3: not found
ERROR: Job failed: exit code 127
We would love to hear if there are any changes that python3-dev or python related in 3.12 version which is affecting the pip3 not found error.
Note: This was working fine in the version 3.11
Workaround: We added the py-pip library and is working as expected without the above-mentioned error.
The text was updated successfully, but these errors were encountered: