进入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
Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐