conda配置tensorflow环境+jupyter配核

conda配置tensorflow环境

  1. anaconda安装python环境

1)在Anaconda Prompt中输入命令,创建conda环境

bash 复制代码
conda create -n tensorflow python=3.7

2)激活环境

bash 复制代码
activate tensorflow
  1. 安装Tensorflow
bash 复制代码
pip install tensorflow==2.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple --user
  1. 安装Keras
bash 复制代码
pip install keras==2.3.1 -i https://pypi.tuna.tsinghua.edu.cn/simple --user

jupyter配核

1.切换想要添加的环境

bash 复制代码
activate tensorflow

2.安装ipykernel

bash 复制代码
python -m pip install ipykernel

3.重启jupyter notebook

anaconda删除虚拟环境

假设你的环境名字叫: tf2

bash 复制代码
conda remove -n tf2 --all

anaconda查看环境包

bash 复制代码
conda info --envs
相关推荐
A懿轩A18 小时前
【2026 最新】TensorFlow 安装配置详细指南 同时讲解安装CPU和GPU版本 小白也能轻松上手!逐步带图超详细展示(Windows 版)
人工智能·windows·python·深度学习·tensorflow
Nightmare00418 小时前
切换conda环境的时候输出zstandard could not be imported. Running without .conda support.
开发语言·python·conda
开发者小天18 小时前
python中使用jupyter notebook 绘制正态分布直方图 密度图 小提琴图 模仿企鹅喙长分布图
开发语言·python·jupyter
墨染天姬19 小时前
【AI】conda常用指令
人工智能·conda
SCBAiotAigc19 小时前
2026.2.25:conda与uv并存时,如何取消base激活
人工智能·python·conda·uv
小鸡吃米…2 天前
TensorFlow 实现异或(XOR)运算
人工智能·python·tensorflow·neo4j
何伯特2 天前
ROS与Conda的兼容性问题深度解析与解决方案
conda·ros
小鸡吃米…2 天前
TensorFlow 实现梯度下降优化
人工智能·python·tensorflow·neo4j
甄心爱学习2 天前
【LR逻辑回归】原理以及tensorflow实现
算法·tensorflow·逻辑回归
小鸡吃米…3 天前
TensorFlow 实现多层感知机学习
人工智能·python·tensorflow