374
374

Reputation: 129

Error Installing pip Inside Docker Container

So I tried to download pip inside a docker container by first copying the installation file via

docker cp get-pip.py dock:get-pip.py

and then I went into the container

docker exec -it 58 bash

I then tried to python get-pip.py the file and i get the following error.

Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/pip/

Upvotes: 1

Views: 2278

Answers (1)

German
German

Reputation: 1695

The problem was that the docker process had problems connecting to the internet. So the installation of pip manually had errors.

Solution Process:

  • Restart the docker process. (Not working)
  • Restart the computer. (problem solved)

Upvotes: 1

Related Questions