conda 卸载
要卸载 jupyter,首先需要确定你是通过哪种方式安装的。
由于你提到不确定是通过 conda 还是本地的 python 安装的,我们可以分别检查并尝试卸载。
conda list jupyter
这里选择你所有的jupyter 相关的包
conda remove -n coder jupyter_client jupyter_core # coder 是我的虚拟环境名字 conda list -n coder
pip 卸载
pip3 show jupyter pip uninstall jupyter
重新安装
这里选择在conda下进行安装
conda create -n rob python=3.6 conda activate rob conda install jupyter jupyter notebook
more jupyter 中没有找到相关环境
在 jupyter notebook 界面中没有看到你的 rob 环境可能是因为在该环境中没有安装 jupyter notebook 相关的内核。
为了在 jupyter notebook 中使用不同的 python 环境,你需要为那个环境安装一个内核。
conda install ipykernel python -m ipykernel install --user --name rob --display-name "python (rob)"
总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持代码网。
发表评论