Dockerfile fails to build on Ubuntu 22.04

Abierto
#6,909 0 comentarios 3 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
docker, python, ubuntu

Línea de trabajo

Comienza con la línea 5 del Dockerfile y el paso anterior de instalación de dependencias; después, vuelve a ejecutar el comando indicado docker build -t tensorboard .. Comprueba el fallo de instalación del paquete de Python en la imagen basada en Ubuntu; se considera completado cuando la imagen se compila correctamente y supera ese paso.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

CLI Output

$ docker build -t tensorboard .

[+] Building 62.7s (7/17)                                                                                         docker:default
 => [internal] load build definition from Dockerfile                                                                        0.0s
 => => transferring dockerfile: 1.26kB                                                                                      0.0s
 => [internal] load metadata for docker.io/library/ubuntu:latest                                                            0.0s
 => [internal] load .dockerignore                                                                                           0.0s
 => => transferring context: 103B                                                                                           0.0s
 => [ 1/13] FROM docker.io/library/ubuntu:latest                                                                            0.0s
 => [internal] load build context                                                                                           1.0s
 => => transferring context: 163.97MB                                                                                       1.0s
 => [ 2/13] RUN apt update && apt install -y wget unzip python3 python3-pip python3-dev python-is-python3 default-jdk nod  62.3s
 => ERROR [ 3/13] RUN python3 -m pip install -U pip                                                                         0.4s
------
 > [ 3/13] RUN python3 -m pip install -U pip:
0.357 error: externally-managed-environment
0.357
0.357 × This environment is externally managed
0.357 ╰─> To install Python packages system-wide, try apt install
0.357     python3-xyz, where xyz is the package you are trying to
0.357     install.
0.357
0.357     If you wish to install a non-Debian-packaged Python package,
0.357     create a virtual environment using python3 -m venv path/to/venv.
0.357     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
0.357     sure you have python3-full installed.
0.357
0.357     If you wish to install a non-Debian packaged Python application,
0.357     it may be easiest to use pipx install xyz, which will manage a
0.357     virtual environment for you. Make sure you have pipx installed.
0.357
0.357     See /usr/share/doc/python3.12/README.venv for more information.
0.357
0.357 note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
0.357 hint: See PEP 668 for the detailed specification.
------
Dockerfile:5
--------------------
   3 |     # Install environment dependencies
   4 |     RUN apt update && apt install -y wget unzip python3 python3-pip python3-dev python-is-python3 default-jdk nodejs npm
   5 | >>> RUN python3 -m pip install -U pip
   6 |
   7 |     # Setup build environment
--------------------
ERROR: failed to solve: process "/bin/sh -c python3 -m pip install -U pip" did not complete successfully: exit code: 1
Lenguaje dominante
TypeScript
Estrellas
7.2k
Forks
1.7k
Merge medio
1 d 13 h
PR fusionados (30 d)
3

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de tensorflow/tensorboard

Todos los issues de tensorflow/tensorboard

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.