如何解决新版的anaconda notebook 打不开浏览器

1 安装nodejs

先安装nodejs,里面有很多需要用node来启动服务

2 一片空白

安装jupyter以后启动,
在这里插入图片描述
结果就得到了如下,在chrome里面打开以后,一片空白
在这里插入图片描述

3 列出环境

conda create --name pytorch python=3.9
conda env list

conda config --show channels
会列出所有的源,可能里面读者已经增加了很多源,删除掉
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
有时候我们为了下载速度快而增加中文的源,如清华源,先去除掉,原因是因为中文的源不一定会同步,稍有不慎就会错误安装,先去掉,后面再加上

直到留下default
在这里插入图片描述
安装其他的package时候使用临时的源,如下所示:
python -m pip install package -i https://pypi.tuna.tsinghua.edu.cn/simple

4 重新安装notebook

pip3 install jupyter notebook

安装vscode作为编辑器,先使用命令jupyter notebook --generate-config,会提示产生了一个配置文件叫jupyter_notebook_config.py,我们使用vscode打开

在这里插入图片描述

把这个设置为true以后,再启动notebook,弹出找浏览器的窗口
这里我选择edge浏览器,成功.
在这里插入图片描述

相关推荐

最近更新

  1. TCP协议是安全的吗?

    2024-03-11 02:48:01       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-03-11 02:48:01       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-03-11 02:48:01       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-03-11 02:48:01       18 阅读

热门阅读

  1. 安卓开发面试题

    2024-03-11 02:48:01       25 阅读
  2. 使用Go语言编写API接口的技术

    2024-03-11 02:48:01       19 阅读
  3. [python3] 读者-写者模式

    2024-03-11 02:48:01       22 阅读
  4. MacOS、ubuntu安装libssh、libssh2

    2024-03-11 02:48:01       19 阅读
  5. 如何在unity中实现倒计时

    2024-03-11 02:48:01       22 阅读