Cannot run jupyter notebook in Ubuntu
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I have installed jupyter notebook using:
sudo pip3 install jupyter
It seemed to work but I got the error:
The directory '/home/user1/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/user1/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag
When I run it:
jupyter notebook
I get the error:
Error executing Jupyter command 'notebook': [Errno 8] Exec format error
command-line python jupyter
add a comment |Â
up vote
0
down vote
favorite
I have installed jupyter notebook using:
sudo pip3 install jupyter
It seemed to work but I got the error:
The directory '/home/user1/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/user1/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag
When I run it:
jupyter notebook
I get the error:
Error executing Jupyter command 'notebook': [Errno 8] Exec format error
command-line python jupyter
1
The error about caching is a non-issue. That's just how pip works. Google it for more details.
â wjandrea
Feb 17 at 16:49
What stoppping me is the second error, any idea how to get jupyter notebook to work?
â MCG Code
Feb 18 at 7:10
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have installed jupyter notebook using:
sudo pip3 install jupyter
It seemed to work but I got the error:
The directory '/home/user1/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/user1/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag
When I run it:
jupyter notebook
I get the error:
Error executing Jupyter command 'notebook': [Errno 8] Exec format error
command-line python jupyter
I have installed jupyter notebook using:
sudo pip3 install jupyter
It seemed to work but I got the error:
The directory '/home/user1/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/user1/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag
When I run it:
jupyter notebook
I get the error:
Error executing Jupyter command 'notebook': [Errno 8] Exec format error
command-line python jupyter
command-line python jupyter
edited Feb 17 at 19:47
![](https://i.stack.imgur.com/eVuAv.png?s=32&g=1)
![](https://i.stack.imgur.com/eVuAv.png?s=32&g=1)
wjandrea
7,24342256
7,24342256
asked Feb 17 at 16:41
MCG Code
11
11
1
The error about caching is a non-issue. That's just how pip works. Google it for more details.
â wjandrea
Feb 17 at 16:49
What stoppping me is the second error, any idea how to get jupyter notebook to work?
â MCG Code
Feb 18 at 7:10
add a comment |Â
1
The error about caching is a non-issue. That's just how pip works. Google it for more details.
â wjandrea
Feb 17 at 16:49
What stoppping me is the second error, any idea how to get jupyter notebook to work?
â MCG Code
Feb 18 at 7:10
1
1
The error about caching is a non-issue. That's just how pip works. Google it for more details.
â wjandrea
Feb 17 at 16:49
The error about caching is a non-issue. That's just how pip works. Google it for more details.
â wjandrea
Feb 17 at 16:49
What stoppping me is the second error, any idea how to get jupyter notebook to work?
â MCG Code
Feb 18 at 7:10
What stoppping me is the second error, any idea how to get jupyter notebook to work?
â MCG Code
Feb 18 at 7:10
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
1
down vote
I faced similar issue. This is what I did to fix the issue (on Ubuntu 16.04):
sudo apt-get remove ipython
sudo apt-get purge ipython
sudo apt-get autoremove
pip install jupyter
ipython seemed to be the problem, hence removing it fixed the issue.
I'm now able to run jupyter notebook
add a comment |Â
up vote
0
down vote
Have you tried to run it as root ?
sudo jupyter notebook --allow-root
or login as root and run the following command:
jupyter notebook --allow-root
I've just tried, doesn't work. I get the exact same error "Error executing Jupyter command 'notebook': [Errno 8] Exec format error"
â MCG Code
Feb 18 at 7:08
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
I faced similar issue. This is what I did to fix the issue (on Ubuntu 16.04):
sudo apt-get remove ipython
sudo apt-get purge ipython
sudo apt-get autoremove
pip install jupyter
ipython seemed to be the problem, hence removing it fixed the issue.
I'm now able to run jupyter notebook
add a comment |Â
up vote
1
down vote
I faced similar issue. This is what I did to fix the issue (on Ubuntu 16.04):
sudo apt-get remove ipython
sudo apt-get purge ipython
sudo apt-get autoremove
pip install jupyter
ipython seemed to be the problem, hence removing it fixed the issue.
I'm now able to run jupyter notebook
add a comment |Â
up vote
1
down vote
up vote
1
down vote
I faced similar issue. This is what I did to fix the issue (on Ubuntu 16.04):
sudo apt-get remove ipython
sudo apt-get purge ipython
sudo apt-get autoremove
pip install jupyter
ipython seemed to be the problem, hence removing it fixed the issue.
I'm now able to run jupyter notebook
I faced similar issue. This is what I did to fix the issue (on Ubuntu 16.04):
sudo apt-get remove ipython
sudo apt-get purge ipython
sudo apt-get autoremove
pip install jupyter
ipython seemed to be the problem, hence removing it fixed the issue.
I'm now able to run jupyter notebook
edited Jun 17 at 17:26
![](https://i.stack.imgur.com/mvyzZ.png?s=32&g=1)
![](https://i.stack.imgur.com/mvyzZ.png?s=32&g=1)
Stephen Rauch
1,1546716
1,1546716
answered Jun 17 at 14:33
akashah
111
111
add a comment |Â
add a comment |Â
up vote
0
down vote
Have you tried to run it as root ?
sudo jupyter notebook --allow-root
or login as root and run the following command:
jupyter notebook --allow-root
I've just tried, doesn't work. I get the exact same error "Error executing Jupyter command 'notebook': [Errno 8] Exec format error"
â MCG Code
Feb 18 at 7:08
add a comment |Â
up vote
0
down vote
Have you tried to run it as root ?
sudo jupyter notebook --allow-root
or login as root and run the following command:
jupyter notebook --allow-root
I've just tried, doesn't work. I get the exact same error "Error executing Jupyter command 'notebook': [Errno 8] Exec format error"
â MCG Code
Feb 18 at 7:08
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Have you tried to run it as root ?
sudo jupyter notebook --allow-root
or login as root and run the following command:
jupyter notebook --allow-root
Have you tried to run it as root ?
sudo jupyter notebook --allow-root
or login as root and run the following command:
jupyter notebook --allow-root
edited Feb 17 at 19:48
![](https://i.stack.imgur.com/eVuAv.png?s=32&g=1)
![](https://i.stack.imgur.com/eVuAv.png?s=32&g=1)
wjandrea
7,24342256
7,24342256
answered Feb 17 at 16:52
An0n
81418
81418
I've just tried, doesn't work. I get the exact same error "Error executing Jupyter command 'notebook': [Errno 8] Exec format error"
â MCG Code
Feb 18 at 7:08
add a comment |Â
I've just tried, doesn't work. I get the exact same error "Error executing Jupyter command 'notebook': [Errno 8] Exec format error"
â MCG Code
Feb 18 at 7:08
I've just tried, doesn't work. I get the exact same error "Error executing Jupyter command 'notebook': [Errno 8] Exec format error"
â MCG Code
Feb 18 at 7:08
I've just tried, doesn't work. I get the exact same error "Error executing Jupyter command 'notebook': [Errno 8] Exec format error"
â MCG Code
Feb 18 at 7:08
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1007116%2fcannot-run-jupyter-notebook-in-ubuntu%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
The error about caching is a non-issue. That's just how pip works. Google it for more details.
â wjandrea
Feb 17 at 16:49
What stoppping me is the second error, any idea how to get jupyter notebook to work?
â MCG Code
Feb 18 at 7:10