python - how dcan i install Ipython.paths, so that the jupyter notebook kernel works? -
following python course, had install jupyter,
but when opening new python3 project browser page, pop message :
dead kernel
the kernel has died, , automatic restart has failed. possible kernel cannot restarted. if not able restart kernel, still able save notebook, running code no longer work until notebook reopened.
on terminal, here comes :
warning:root:kernel 3103f319-5721-4b62-98b0-649dcc448421 restarted traceback (most recent call last): file "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) file "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) file "/usr/local/lib/python3.5/dist-packages/ipykernel_launcher.py", line 15, in <module> ipykernel import kernelapp app file "/usr/local/lib/python3.5/dist-packages/ipykernel/__init__.py", line 2, in <module> .connect import * file "/usr/local/lib/python3.5/dist-packages/ipykernel/connect.py", line 14, in <module> ipython.paths import get_ipython_dir importerror: no module named 'ipython.paths' [w 01:24:38.987 notebookapp] kernelrestarter: restart failed [w 01:24:38.988 notebookapp] kernel 3103f319-5721-4b62-98b0-649dcc448421 died, removing map. error:root:kernel 3103f319-5721-4b62-98b0-649dcc448421 restarted failed! [w 01:24:42.242 notebookapp] kernel deleted before session [w 01:24:42.243 notebookapp] 410 delete /api/sessions/396ef2da-3d1d-4416-a959-45500e346b2a (127.0.0.1) 3.83ms referer=http://localhost:8888/notebooks/untitled4.ipynb?kernel_name=python3 [i 01:26:23.898 notebookapp] saving file @ /untitled4.ipynb
i tried installing ipython.paths, running
pip3 install paths
but :
collecting paths downloading paths-0.0.1a1.tar.gz complete output command python setup.py egg_info: traceback (most recent call last): file "<string>", line 1, in <module> file "/tmp/pip-build-qppr67p0/paths/setup.py", line 11, in <module> paths import metadata file "/tmp/pip-build-qppr67p0/paths/paths/__init__.py", line 31 print type(filename) ^ syntaxerror: invalid syntax ---------------------------------------- command "python setup.py egg_info" failed error code 1 in /tmp/pip-build-qppr67p0/paths/
i've tried review various threads, including this one , none seemed exactely i'm looking for... help
Comments
Post a Comment