Tensorflow: docker image and -gpu suffix
问题 In the Docker image for Tensorflow with GPU support (for example: tensorflow/tensorflow:2.2.0-gpu ) the installed python package is tensorflow-gpu (as shown in pip freeze ). Installing any python package that depends on tensorflow triggers the installation of tensorflow itself, although it's already installed under a different name (because -- correctly -- tensorflow-gpu != tensorflow ). Is there a way to avoid this? 回答1: You can add an instruction to install a fake tensorflow "package" that