无法再在 Alpine Docker 上安装 Python 软件包
Can't install Python package on Alpine Docker anymore
我最近遇到了一个问题。 Docker Alpine Python 库无法再安装:
apk update && apk upgrade && apk add python
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
v3.14.2-119-g9c4e1aa60c [https://dl-cdn.alpinelinux.org/alpine/v3.14/main]
v3.14.2-120-g90167408c8 [https://dl-cdn.alpinelinux.org/alpine/v3.14/community]
OK: 14943 distinct packages available
(1/1) Upgrading alpine-keys (2.3-r1 -> 2.4-r0)
0% 2% # 5% ## 7% ### 10% #### 12% ##### 15% ###### 17% ####### 20% ######### 23% ########## 25% ########### 28% ############ 30% ############# 33% ############## 35% ############### 38% ################ 41% ################## 43% ################### 46% #################### 48% ##################### 51% ###################### 53% ####################### % ############################################OK: 7 MiB in 16 packages
ERROR: unable to select packages:
python (no such package):
required by: world[python]
Exited with code exit status 1
您正在尝试使用 python
(别名)库而不是 python3
。
尝试使用 apk update && apk upgrade && apk add python3
。
我最近遇到了一个问题。 Docker Alpine Python 库无法再安装:
apk update && apk upgrade && apk add python
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
v3.14.2-119-g9c4e1aa60c [https://dl-cdn.alpinelinux.org/alpine/v3.14/main]
v3.14.2-120-g90167408c8 [https://dl-cdn.alpinelinux.org/alpine/v3.14/community]
OK: 14943 distinct packages available
(1/1) Upgrading alpine-keys (2.3-r1 -> 2.4-r0)
0% 2% # 5% ## 7% ### 10% #### 12% ##### 15% ###### 17% ####### 20% ######### 23% ########## 25% ########### 28% ############ 30% ############# 33% ############## 35% ############### 38% ################ 41% ################## 43% ################### 46% #################### 48% ##################### 51% ###################### 53% ####################### % ############################################OK: 7 MiB in 16 packages
ERROR: unable to select packages:
python (no such package):
required by: world[python]
Exited with code exit status 1
您正在尝试使用 python
(别名)库而不是 python3
。
尝试使用 apk update && apk upgrade && apk add python3
。