栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

【Jupyter Notebook】Error: IProgress not found. Please update jupyter and ipywidgets

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

【Jupyter Notebook】Error: IProgress not found. Please update jupyter and ipywidgets

Error: IProgress not found. Please update jupyter and ipywidgets

问题描述:在 base 环境下运行 jupyter notebook,用到名称为 pytorch 虚拟环境的内核,然后报错。

解决方案:根据提示官方链接

  1. 在 base 环境下运行:
conda install -c conda-forge ipywidgets
conda install -n base -c conda-forge widgetsnbextension
conda install -n pytorch -c conda-forge ipywidgets
  1. 重启 jupyter notebook。

另:参考pip3 install ipykernel

添加内核的方法(pytorch这个虚拟环境为例):

  1. 安装 ipykernel
conda activate pytorch
pip install ipykernel
  1. 添加名称为 pytorch 内核
conda activate pytorch
python -m ipykernel install --name pytorch
  1. 查看 jupyter notebook 中的内核
jupyter kernelspec list
  1. 删除 jupyter notebook 中名称为 pytorch 的内核
jupyter kernelspec remove pytorch
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/849000.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号