ipython / ipython/ipykernel

Error running "python -m ipykernel install --user"

Đang mở
#326 0 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ả

macOS 10.13.5
In terminal
When I run `sudo -H python2 -m ipykernel install --user
`
I got this error:
`Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 163, in _run_module_as_main
mod_name, _Error)
File "/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 111, in _get_module_details
__import__(mod_name) # Do not catch exceptions initializing package
File "/var/root/Library/Python/2.7/lib/python/site-packages/ipykernel/__init__.py", line 2, in
from .connect import *
File "/var/root/Library/Python/2.7/lib/python/site-packages/ipykernel/connect.py", line 13, in
from IPython.core.profiledir import ProfileDir
File "/var/root/Library/Python/2.7/lib/python/site-packages/IPython/__init__.py", line 48, in
from .core.application import Application
File "/var/root/Library/Python/2.7/lib/python/site-packages/IPython/core/application.py", line 23, in
from traitlets.config.application import Application, catch_config_error
ImportError: No module named traitlets.config.application`
Which points to that I did not have traitlets.
But when I try to import it, it was imported.
I'm using Hydrogen in Atom, and it requires this command to be done.
How to solve it?

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.