我和Caffe一起运行Jupyter Notebook。安装Torch后,Jupyter Notebook已停止工作。它产生一个错误:
I couldn't find a kernel matching Python 2. Please select a kernel:
但是唯一可用的选项是“ iTorch”。请问如何重新配置?谢谢。
键入jupyter kernelspec列表将产生:
[ListKernelSpecs] WARNING | Native kernel (python2) is not available
[ListKernelSpecs] WARNING | Native kernel (python2) is not available
Available kernels:
itorch /home/user/.ipython/kernels/itorch
如何重新安装python2内核?ipython kernelspec install --user无效。
安装Torch不利地影响了我的ipython安装。删除ipython并重新安装后,一切正常。这就是我所做的:
sudo apt-get --purge remove ipython
sudo pip uninstall ipython
git clone https://github.com/ipython/ipython.git
cd ipython
sudo pip install -e .
如果有人知道Torch做了什么,请发布。谢谢。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句