gpt4 book ai didi

python - 如何修复执行器运行失败 [/bin/sh -c pip install --upgrade --force-reinstall pip==9.0.3 && pip install --upgrade 'setuptools<45'] :

转载 作者:行者123 更新时间:2023-12-04 19:29:49 26 4
gpt4 key购买 nike

我在运行 Dockerfile 时得到了这个。
当我重置我的窗口时它工作但最近我删除了所有 docker 容器,当我再次尝试从 Dockerfile 构建时,我遇到了这个问题。我无法升级 pip 或执行 pip install。
这是 Dockerfile。

FROM ubuntu:14.04


ENV DEBIAN_FRONTEND noninteractive
ENV DOCKER_STATE dev

RUN apt-get update && apt-get install -y \
python-pip python-dev uwsgi-plugin-python \
nginx supervisor libxml2-dev libxslt1-dev mysql-client \
libldap2-dev libsasl2-dev libffi-dev uwsgi python-mysqldb libmysqlclient-dev \
imagemagick poppler-utils curl


RUN pip install --upgrade --force-reinstall pip==9.0.3 && pip install --upgrade 'setuptools<45'
这是我得到的错误
#7 [ 3/20] RUN pip install --upgrade --force-reinstall pip==9.0.3 && pip install --upgrade 'setuptools<45'
#7 sha256:2623dbc50626ca8f0979fcda52fc07d026edc413a5da1187d9d4a1fcae0edfd8
#7 0.525 Downloading/unpacking pip==9.0.3
#7 1.162 Cannot fetch index base URL https://pypi.python.org/simple/
#7 1.740 Could not find any downloads that satisfy the requirement pip==9.0.3
#7 1.740 Cleaning up...
#7 1.740 No distributions at all found for pip==9.0.3
#7 1.742 Storing debug log for failure in /root/.pip/pip.log
#7 ERROR: executor failed running [/bin/sh -c pip install --upgrade --force-reinstall pip==9.0.3 && pip install --upgrade 'setuptools<45']: exit code: 1
------
> [ 3/20] RUN pip install --upgrade --force-reinstall pip==9.0.3 && pip install --upgrade 'setuptools<45':
------
executor failed running [/bin/sh -c pip install --upgrade --force-reinstall pip==9.0.3 && pip install --upgrade 'setuptools<45']: exit code: 1
任何帮助将不胜感激

最佳答案

上面写着No distributions at all found for pip==9.0.3 .
所以只需安装最新版本(pip 21.1.2 没有缺 pip )。
python -m pip install --upgrade pip一切都应该工作

关于python - 如何修复执行器运行失败 [/bin/sh -c pip install --upgrade --force-reinstall pip==9.0.3 && pip install --upgrade 'setuptools<45'] :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67727949/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com