jupyter notebook 使用新环境无法连接,终端报错[W 20:14:43.988 NotebookApp] KernelRestarter: restart failed

jupyter notebook 显示无法连接(无法运行程序):
在这里插入图片描述

终端报错:
在这里插入图片描述

解决方法如下:

1、在cmd终端输入以下命令激活需要使用的环境:

activate 环境名

我在这里输入:

activate tensorflow1.0

在这里插入图片描述
可以发现已经处在tensorflow1.0环境中了。

2、然后再当前环境下输入以下命令启动jupyter notebook:

jupyter notebook

在这里插入图片描述

在使用当前环境打来的jupyter notebook网页中,就可以正常连接啦:

在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_45154565/article/details/109655489