①需要激活pytorch环境activate pytorch,在pytorch环境下输入
conda install nb_conda_kernels
再重新激活tensorflow环境activate tensorflow,并输入同样命令。
再返回到anoconda的base环境,在此环境下同样输入此命令。
②在base环境下输入jupyter notebook 就可以了,此时我进入的是C盘的,但我想进入F盘
③因此在base环境下,输入:
(base) C:\Users\DELL>f:
④进入F盘后,可直接输入jupyter notebook,出现(3 kernels found),(这3个kernel分别是tensorflow、pytorch、base环境下的root):
⑤成功打开F盘下的文件:
⑥ 快速打开F盘下的jupyter notebook:
首先, windows+R 输入cmd ,输入 jupyter notebook –generate-config
then,在C:\Users\username.jupyter里打开 jupyter_notebook_config.py (用sublime或其他代码编辑器打开)
then,CTRL+F搜索 notebook_dir,并修改:去掉前面的#,并在引号中加入你的新地址,前面必须顶行写,不能有空格,如下:
c.NotebookApp.notebook_dir = 'F:\\Python\\jupyter notebook'
then,打开jupyter notebook 快捷方式的属性设置
then,删除目标T中的 “%USERPROFILE%” ,保存。
last,直接点快捷方式就可进入F盘。
Original: https://blog.csdn.net/lsx1_23/article/details/121903465
Author: lsx1_23
Title: jupyter notebook里配置pytorch和tensorflow
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/514048/
转载文章受原作者版权保护。转载请注明原作者出处!