Jupyter Notebook仅在基本环境中工作 [英] Jupyter notebook only works in base environment

查看:97
本文介绍了Jupyter Notebook仅在基本环境中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Jupyter笔记本电脑今天突然停止照常工作.

Jupyter notebook stopped working as usual suddenly today.

如果我这样启动Jupyter,则在基本环境中一切正常.

If I launch Jupyter like this then everything works fine in base environment.

activate base
jupyter notebook

但是在其他任何环境中启动它,或者只是在不声明环境的情况下启动它

But launching it in any other environment or simply without declaring environment

activate XXX
jupyter notebook

在浏览器中显示为localhost:8889/tree空白页.

results as a localhost:8889/tree blank page in browser.

Jupyter控制台中也没有错误.

Also there are no errors in Jupyter console.

我已经重新安装了Anaconda和Jupyter,重新启动了PC,并使用ip 127.0.0.1代替了localhost,但没有任何帮助.

I have reinstalled Anaconda and Jupyter, restarted PC and used ip 127.0.0.1 instead of localhost, but nothing helps.

我该怎么办?我真的需要快速恢复环境.

What should I do? I really need to get environments back up fast.

推荐答案

一旦激活conda环境,请尝试为该环境安装Jupyter:

Once you activate your conda environment, try to install Jupyter for that environment:

conda activate XXX conda install -c anaconda jupyter

conda activate XXX conda install -c anaconda jupyter

希望它会有所帮助.

这篇关于Jupyter Notebook仅在基本环境中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆