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版本
本文介绍了如何使用conda创建一个Python3.8环境,并在该环境中安装Tensorflow2.0。首先,通过conda命令行创建环境,然后激活环境,接着使用pip安装Tensorflow,最后通过Python交互式环境验证Tensorflow是否安装成功并查看其版本。
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版本
您可能感兴趣的与本文相关的镜像
Python3.11
Python 是一种高级、解释型、通用的编程语言,以其简洁易读的语法而闻名,适用于广泛的应用,包括Web开发、数据分析、人工智能和自动化脚本
887

被折叠的 条评论
为什么被折叠?