Error running "python -m ipykernel install --user"
- 主要语言
- Python
- 星标
- 734
- 派生
- 412
- 平均合并
- 1 天 5 小时
- 30 天内合并 PR
- 8
描述
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?
贡献指南
评估
这个 Issue 还没有评估数据。