ipython / ipython/ipykernel

Unable to start kernel on python 2.7 with ipython juypter notebook

Đang mở
#194 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
734
Fork
412
Merge trung bình
1 ngày 5 giờ
Pull request đã merge (30 ngày)
8

Mô tả

What should I do?

```
[TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook` in the future
[I 14:03:47.947 NotebookApp] Serving notebooks from local directory: /Users/shyamalsuhanachandra/tensorflow/tensorflow/examples/udacity
[I 14:03:47.947 NotebookApp] 0 active kernels
[I 14:03:47.947 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 14:03:47.947 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 14:03:52.472 NotebookApp] Kernel started: f3e77d2e-46d1-452c-b5e2-a9311499c411
[W 14:03:52.490 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20161001140347 (::1) 7.14ms referer=http://localhost:8888/notebooks/1_notmnist.ipynb
/usr/local/opt/python/bin/python2.7: No module named shutil_get_terminal_size; 'ipykernel' is a package and cannot be directly executed
[I 14:03:55.471 NotebookApp] KernelRestarter: restarting kernel (1/5)
/usr/local/opt/python/bin/python2.7: No module named shutil_get_terminal_size; 'ipykernel' is a package and cannot be directly executed
[I 14:03:58.480 NotebookApp] KernelRestarter: restarting kernel (2/5)
/usr/local/opt/python/bin/python2.7: No module named shutil_get_terminal_size; 'ipykernel' is a package and cannot be directly executed
[I 14:04:01.486 NotebookApp] KernelRestarter: restarting kernel (3/5)
/usr/local/opt/python/bin/python2.7: No module named shutil_get_terminal_size; 'ipykernel' is a package and cannot be directly executed
[W 14:04:02.555 NotebookApp] Timeout waiting for kernel_info reply from f3e77d2e-46d1-452c-b5e2-a9311499c411
[I 14:04:04.494 NotebookApp] KernelRestarter: restarting kernel (4/5)
WARNING:root:kernel f3e77d2e-46d1-452c-b5e2-a9311499c411 restarted
/usr/local/opt/python/bin/python2.7: No module named shutil_get_terminal_size; 'ipykernel' is a package and cannot be directly executed
[W 14:04:07.502 NotebookApp] KernelRestarter: restart failed
[W 14:04:07.502 NotebookApp] Kernel f3e77d2e-46d1-452c-b5e2-a9311499c411 died, removing from map.
ERROR:root:kernel f3e77d2e-46d1-452c-b5e2-a9311499c411 restarted failed!
[W 14:04:07.514 NotebookApp] Kernel deleted before session
[W 14:04:07.514 NotebookApp] 410 DELETE /api/sessions/c20c97a9-4375-4b2a-a953-5094ad19f283 (::1) 1.73ms referer=http://localhost:8888/notebooks/1_notmnist.ipynb
[W 14:04:08.603 NotebookApp] Session not found: session_id=u'c20c97a9-4375-4b2a-a953-5094ad19f283'
[W 14:04:08.603 NotebookApp] 404 DELETE /api/sessions/c20c97a9-4375-4b2a-a953-5094ad19f283 (::1) 1.20ms referer=http://localhost:8888/notebooks/1_notmnist.ipynb
[I 14:04:08.622 NotebookApp] Kernel started: 175e72d8-349a-4786-b918-638502050d03
/usr/local/opt/python/bin/python2.7: No module named shutil_get_terminal_size; 'ipykernel' is a package and cannot be directly executed
[I 14:04:11.624 NotebookApp] KernelRestarter: restarting kernel (1/5)
/usr/local/opt/python/bin/python2.7: No module named shutil_get_terminal_size; 'ipykernel' is a package and cannot be directly executed
[I 14:04:14.632 NotebookApp] KernelRestarter: restarting kernel (2/5)
/usr/local/opt/python/bin/python2.7: No module named shutil_get_terminal_size; 'ipykernel' is a package and cannot be directly executed
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.