服务器安装tensorflow2.4版本 首先,创建tensorflow2.4环境。Conda create -n tensorflow2.4 python=3.9激活环境。conda activate tensorflow2.4然后,安装tensorflow-gpu版本。conda install tensorflow-gpu==2.4。注意不能使用pip 安装。检查是否安装成功,如果打印"True",则tensorflow-gpu安装成功。 import tensorflow as tf print(tf.test.is_gpu_available())