小编hjs*_*hjs的帖子

jupyter-console 无法启动,但 jupyter-notebook 很好

我可以启动 jupyter-notebook 但不能启动 jupyter-console。在Mac上的开发的virtualenv,它试图导入cast_unicode_py2IPython.utils.py3compat,但cast_unicode_py2不能输入:

(dev) C02ZV35VLVDL:profile_default harvey$ jupyter-console
Traceback (most recent call last):
  File "/Users/harvey/dev/bin/jupyter-console", line 5, in <module>
    from jupyter_console.app import main
  File "/Users/harvey/dev/lib/python3.7/site-packages/jupyter_console/app.py", line 26, in <module>
    from jupyter_console.ptshell import ZMQTerminalInteractiveShell
  File "/Users/harvey/dev/lib/python3.7/site-packages/jupyter_console/ptshell.py", line 22, in <module>
    from IPython.utils.py3compat import cast_unicode_py2, input
ImportError: cannot import name 'cast_unicode_py2' from 'IPython.utils.py3compat' (/Users/harvey/dev/lib/python3.7/site-packages/IPython/utils/py3compat.py)
Run Code Online (Sandbox Code Playgroud)

python ipython jupyter-notebook

3
推荐指数
1
解决办法
1085
查看次数

标签 统计

ipython ×1

jupyter-notebook ×1

python ×1