漏洞? Jupyter 突然 python2 即使它显示使用 python3
Bug? Jupyter suddenly python2 even though it shows to use python3
最近,我将 pip 更新到版本 10 并安装了 'Jupyter Lab'。
现在我才意识到 Jupyter 总是启动 python 2 内核,即使我明确告诉它使用 python3 内核
有人遇到过这个吗?
编辑:
pip3 似乎不再正常工作了:
$ pip3
bash: pip3: command not found
即使:
$ apt install python3-pip
python3-pip is already the newest version (9.0.1-2).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
编辑 2:
因为 '$ python3' 工作正常,我检查了 jupyer kernals:
$ jupyter kernelspec list
Available kernels:
python2 /usr/local/share/jupyter/kernels/python2
python3 /usr/local/share/jupyter/kernels/python3
Mabye this is helpfull regarding Tylers comment.
我尝试了几件事,但似乎解决问题的方法是卸载并重新安装内核。
$ sudo jupyter kernelspec remove python3
$ sudo jupyter kernelspec install-self
如果有人知道出了什么问题,我会很乐意听到!
谢谢泰勒的帮助!
最近,我将 pip 更新到版本 10 并安装了 'Jupyter Lab'。 现在我才意识到 Jupyter 总是启动 python 2 内核,即使我明确告诉它使用 python3 内核
编辑:
pip3 似乎不再正常工作了:
$ pip3
bash: pip3: command not found
即使:
$ apt install python3-pip
python3-pip is already the newest version (9.0.1-2).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
编辑 2:
因为 '$ python3' 工作正常,我检查了 jupyer kernals:
$ jupyter kernelspec list
Available kernels:
python2 /usr/local/share/jupyter/kernels/python2
python3 /usr/local/share/jupyter/kernels/python3
Mabye this is helpfull regarding Tylers comment.
我尝试了几件事,但似乎解决问题的方法是卸载并重新安装内核。
$ sudo jupyter kernelspec remove python3
$ sudo jupyter kernelspec install-self
如果有人知道出了什么问题,我会很乐意听到!
谢谢泰勒的帮助!