Anaconda中打开自带的jupyter出现连接不上python服务的问题
问题描述:
在Anaconda中选择自己创建的环境,打开jupyter,打印语句无法输出,关键字颜色没变,运行出现In[*]
观察左边红色框中的🔗符号,这说明当前环境没有连接上python的服务,使用快捷键shift+enter后运行出现In[*]
解决方案:
1、将创建环境中jupyter notebook完全卸载,我选用pip uninstall jupyter notebook 无法将依赖的包完全删除,建议采用命令conda uninstall notebook,当完全卸载后再进入Anaconda界面,可以看到jupyter中不是launch而是install,说明你已完全删除
conda uninstall notebook
2、在命令行重新安装jupyter notebook
pip install jupyter
pip install jupyter notebook