进入Anaconda Prompt控制台
查看python版本
Python –version
创建TensorFlow环境
Conda create –name tensorflow2.0 python==3.7
激活该环境
Activate tensorflow2.0
下载TensorFlow
pip install --upgrade --ignore-installed tensorflow==2.4.0
查看
conda list
测试
python
import tensorflow as tf
查看tensorflow版本
pip show tensorflow
卸载anaconda
sudo pip uninstall protobuf
sudo pip uninstall tensorflow