最近,我将 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内核:
$ 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.