前言

# 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

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐