Я могу запустить jupyter-notebook, но не jupyter-console. В dev virtualenv на Ma c он пытается импортировать cast_unicode_py2
из IPython.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)