源修改
This commit is contained in:
@@ -33,6 +33,8 @@ COPY schoolNewsCrawler/requirements.txt /tmp/requirements.txt
|
||||
RUN echo "========================================" && \
|
||||
echo "安装Python爬虫依赖到基础镜像" && \
|
||||
echo "========================================" && \
|
||||
# 配置pip使用国内镜像源(清华源)
|
||||
python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && \
|
||||
python3 -m pip --version && \
|
||||
echo "" && \
|
||||
# Python 3.12 引入了 PEP 668 规范,需要添加 --break-system-packages
|
||||
|
||||
Reference in New Issue
Block a user