ipython / ipython/ipykernel

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

Open
#326 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
734
Forks
412
Avg merge
1d 5h
Merged PRs (30d)
8

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.