如何修复执行器在运行[/bin/sh-c pip install--upgrade--force-renstall pi



我在运行Dockerfile时得到了这个。当我重新设置窗口时,它起作用了,但最近我删除了所有docker容器,当我再次尝试从Dockerfile构建时,我遇到了这个问题。我无法升级pip或安装pip。这是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没有任何缺点(
执行python -m pip install --upgrade pip,所有内容都应该工作

相关内容

  • 没有找到相关文章

最新更新