网址:https://www.anaconda.com/blog/developer-blog/tensorflow-in-anaconda/
Interested in trying out these TensorFlow packages? After installing Anaconda or Miniconda, create a new conda environment containing TensorFlow and activate it
conda create -n tensorflow_env tensorflow
conda activate tensorflow_env
Or for the GPU version
conda create -n tensorflow_gpuenv tensorflow-gpu
conda activate tensorflow_gpuenv
TensorFlow is now installed and ready for use. For those new to TensorFlow, the tutorials offer a great place to get started.