-
下面这个博客总结了3种不同的方法,很有调理,推荐尝试
【最全指南】如何在 Jupyter Notebook 中切换/使用 conda 虚拟环境?!!! 注意使用上面介绍的ipykernel方法2, 要在每一个希望被jupyter识别到的环境内【分别】安装ipykernel以及添加配置 python -m ipykernel install --user --name myenv
如果只在安装jupyter的环境中执行 python -m ipykernel install --user --name myenv 则会出现在jupyter中看起来有其他kernel,但是其实无法使用的诡异情况
-
一样的问题 Conda environments not showing up in Jupyter Notebook
Conda environments not showing up in Jupyter Notebook如果不使用nb_conda的解决说明:
I don't think the other answers are working any more, as conda stopped automatically setting environments up as jupyter kernels. You need to manually add kernels for each environment in the following way:
bashsource activate myenv pip install ipykernel python -m ipykernel install --user --name myenv --display-name "myenv"!!! 再说一遍!要在每一个希望被jupyter识别到的环境内【分别】安装ipykernel以及添加配置 python -m ipykernel install --user --name myenv
-
报错Jupyter conda tab 'An error occurred while retrieving package information.'可能的解决方案,当使用了nb_conda的时候
Running Jupyter notebook in a virtualenv: installed sklearn module not availablebashrm jupyter_notebook_config.json in ~/.jupyter或
bashjupyter serverextension disable nb_conda jupyter serverextension enable nb_conda -
报错jupyter cannot find my conda env
You need to install nb_conda, however, at the moment nb-conda cannot be directly installed with python3.6.
A way around that is to install it from conda-forge:
bashconda install -c conda-forge nb_conda -
一旦配置之后,但是又配置错误了,彻底删除jupyter以及所有配置
bashjupyter kernelspec list列出所有可用的内核规范,注意这里只是看起来可以用,不代表真的就可以用,将其全部删掉。
bashjupyter --paths输出 Jupyter 在系统中查找各种文件(包括配置文件)的路径信息。输出结果通常包括config(配置文件路径)、data(数据文件路径)和runtime(运行时文件路径)等部分。将其所有目录全面删掉。
可以的话,把这个环境变量也删了
conda remove --name myenv --all
重新建立一个
conda create -n myenv python=3.xx
jupyter切换内核方法配置问题总结
路人甲ing..2024-12-25 12:07
相关推荐
wuyk55514 分钟前
Python网络爬虫入门到实战 第02章:HTTP/HTTPS协议超通俗精讲(GET/POST、请求头、响应码、爬虫核心基础)昔我往昔42 分钟前
init文件介绍奕鼎竜瑆1 小时前
Chrome 插件开发实战指南:从入门到发布虫无涯1 小时前
大模型联动 CodeQL + Coverity 完整落地方案段一凡-华北理工大学1 小时前
大模型与智能体在工业的应用~系列文章12:大模型 × 数字孪生 × 智能体的融合图景流形填表1 小时前
多校区题库标准化:Excel模板与校验脚本梦想画家2 小时前
SQLMesh Python 模型入门(二):依赖管理、引擎实战与内存优化全栈练习生2 小时前
大模型原理之 KV Cache天赐范式2 小时前
天赐范式第183天:让选择开始生效——育种者方程与选择生效条件benchmark_cc3 小时前
批量行情返回后,怎样把请求失败的股票和正常数据分开?