1.创建一个tensorflow的环境
conda create -n tensorflow python=3.8
2.进入以建立的tensorflow的环境
conda activate tensorflow
3.安装tensorflow
pip install tensorflow
4.检查是否安装成功
python
import tensorflow as tf
tf.__version__
tf.__path__
tensorflow为2.0版本
1.创建一个tensorflow的环境
conda create -n tensorflow python=3.8
2.进入以建立的tensorflow的环境
conda activate tensorflow
3.安装tensorflow
pip install tensorflow
4.检查是否安装成功
python
import tensorflow as tf
tf.__version__
tf.__path__
tensorflow为2.0版本