问题描述
我最近完成了Haskell的安装说明,并已到达我在哪里运行
I've recently completed the installation instructions for Haskell, and have reached the final step where I run
ihaskell install
将IHaskell内核安装到Jupyter中。但是此时我卡住了,错误
to install the IHaskell kernel into Jupyter. However at this point I'm stuck, with the error
Detected IPython, but could not parse version number.
ihaskell:
Ran commands:
which ipython
/usr/local/bin/ipython --version
which /usr/local/bin/ipython
Exception: ExitFailure 1
这没有任何意义,因为当我自己运行这些命令时,我得到一个有效(和必需)的版本号:
which makes no sense, since when I run those commands myself, I get a valid (and required) version number:
$ which ipython
/usr/local/bin/ipython
$ /usr/local/bin/ipython --version
4.0.0
$ which /usr/local/bin/ipython
/usr/local/bin/ipython
如何继续将IHaskell内核安装到Jupyter?
How do I proceed to install the IHaskell kernel into Jupyter?
推荐答案
这是一个(很快就会解决),它只支持IPhython 3.0。
This is a (soon to be addressed) limitation of the current version of IHaskell, which only supports IPhython 3.0.
退回3.0
pip uninstall ipython
pip uninstall jupyter_core
pip install ipython[notebook]==3.0
将解决问题,直到更新IHaskell,此时它将是安全的使用
will resolve the problem until IHaskell is updated, at which point it will be safe to restore the current version of IPython with
pip install ipython[notebook] --upgrade
请注意,退回到3.0会导致视图出现明显差异,但设置文件的预期位置会发生变化。
Note that stepping back to 3.0 will result in view visible differences, though the expected location of settings files will change.
这篇关于无法将IHaskel内核安装到Jupyter中:“无法解析版本号”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!