pip install error inside Docker container: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

Trying to install some Python packages with pip inside a Docker container I ran into this issue: # pip3 install pytest Collecting pytest Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(‘<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7feb52c30630>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’,)’: /simple/pytest/ At first I thought …

Issues running gpt-2 with provided Docker image

After following the instructions to build the gpt-2 Docker image here, I started up a bash shell into the container: docker run  -it gpt-2 bash And then ran: python3 src/generate_unconditional_samples.py | tee /tmp/samples This failed with this error: AttributeError: module ‘tensorflow’ has no attribute ‘sort’ A post here says to upgrade to Tensorflow 1.14.0 in …