前言

# 1. ubuntu20.04安装Anaconda3

# 2. 安装TensorFlow

  • 创建虚拟环境tf
conda create -n tf
  • 切换到虚拟环境tf
conda activate tf 
  • 查看Python版本
python -V                                                                                                                                                
Python 3.8.10
  • 安装tensorflow默认版本(cpu版本)
conda install tensorflow 

# 3. 安装jupyter

conda install jupyter notebook

#################################################################
# 查看内核安装位置
# jupyter kernelspec list
#################################################################

# 使得jupyter中的内核能显示 tf:效果如下图所示
python -m ipykernel install --user --name tf --display-name "tf"

# 查看内核安装位置
# jupyter kernelspec list

使得jupyter中的内核能显示 tf在这里插入图片描述

# 4. 安装成功

在这里插入图片描述

Logo

一站式 AI 云服务平台

更多推荐