Commit
•
2405aa9
1
Parent(s):
74f7d1f
Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -44,7 +44,11 @@ RUN apt-get update && apt-get install -y python3.9
|
|
44 |
# 设置 Python 3.9 作为默认 Python 版本
|
45 |
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
|
46 |
|
|
|
|
|
47 |
|
|
|
|
|
48 |
|
49 |
RUN pip install -U pip
|
50 |
|
|
|
44 |
# 设置 Python 3.9 作为默认 Python 版本
|
45 |
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
|
46 |
|
47 |
+
# 安装 pip
|
48 |
+
RUN apt-get install -y python3-pip
|
49 |
|
50 |
+
# 升级 pip
|
51 |
+
RUN python3.9 -m pip install --upgrade pip
|
52 |
|
53 |
RUN pip install -U pip
|
54 |
|