conda create -n tf2.1 python=3.7conda activate tf2.1conda install tensorflow-gpu=2.1.0 conda会自动安装好cudatookit,cudnn等。检测:证明gpu可用。