# jupyter notebook添加Anaconda虚拟环境的kernel
# 开启虚拟环境
(base) C:\Users\jiangshan>activate tensorflow
# 首先向虚拟环境安装ipykernel
(tensorflow) C:\Users\jiangshan>conda install -n tensorflow ipykernel
# 进行配置
(tensorflow) C:\Users\jiangshan>python -m ipykernel install --user --name tensorflow --display-name "Tensorflow"
Installed kernelspec tensorflow in C:\Users\jiangshan\AppData\Roaming\jupyter\kernels\tensorflow
# 启动jupyter notebook,然后在"新建"中就会有Tensorflow这个kernel了
(tensorflow) C:\Users\jiangshan>jupyter notebook
原文地址:https://www.cnblogs.com/jeshy/p/10520443.html
时间: 2024-11-29 08:16:15