Code Monkey home page Code Monkey logo

Comments (39)

Milannju avatar Milannju commented on June 12, 2024 125

Try this commend: python -m IPython notebook

from jupyter_core.

kishorekonjeti avatar kishorekonjeti commented on June 12, 2024 51

I had this issue. Finally got the solution.ie simply execute the following command..
sudo apt install jupyter-notebook
After finishing installing then run the command
jupyter-notebook

from jupyter_core.

takluyver avatar takluyver commented on June 12, 2024 45

Does jupyter-notebook work instead of jupyter notebook?

from jupyter_core.

hemangjoshi37a avatar hemangjoshi37a commented on June 12, 2024 15

It seems to me as though the installation has messed up somehow. Try running:

For Python 2

pip install --upgrade --force-reinstall --no-cache-dir jupyter

For Python 3

pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
This should reinstall everything from PyPi. This should solve the problem as I think running pip install "ipython[notebook]" messed things up.

from jupyter_core.

slonak79 avatar slonak79 commented on June 12, 2024 10

I'm having the same issue.

Error executing Jupyter command 'notebook': [Errno 2] No such file or directory

from jupyter_core.

przbatte avatar przbatte commented on June 12, 2024 5

Please try: pip3 install jupyter --force or pip install jupyter --force

from jupyter_core.

awelkie avatar awelkie commented on June 12, 2024 2

On Fedora 27 I had to install python3-notebook

dnf install python3-notebook

from jupyter_core.

takluyver avatar takluyver commented on June 12, 2024 2

We don't recommend installing through apt, because that will almost always be out of date. Even in Ubuntu 18.04, which was released a couple of days ago, it's not up to date.

from jupyter_core.

iamtodor avatar iamtodor commented on June 12, 2024 2

python -m IPython notebook - worked for me. however I got the following output while executing jupyter-notebook or jupyter notebook:

mcbk:machine-learning todor$ jupyter-notebook
-bash: /usr/local/bin/jupyter-notebook: /usr/local/opt/python/bin/python3.7: bad interpreter: No such file or directory
mcbk:machine-learning todor$ jupyter notebook
Error executing Jupyter command 'notebook': [Errno 2] No such file or directory

from jupyter_core.

iYiYaHa avatar iYiYaHa commented on June 12, 2024 1

@ksr11 Thanks! I had the same problem, and your solution worked for me.

from jupyter_core.

BasharAlmomaine avatar BasharAlmomaine commented on June 12, 2024 1

it's ok. thanks for the help.
I figured it out and fixed it.
I just opened the excel file and saved it as CSV( Comma delimited).

from jupyter_core.

takluyver avatar takluyver commented on June 12, 2024

Can you check that file does actually exist and is executable?

ls -l /usr/local/Python/bin/

from jupyter_core.

Anne623 avatar Anne623 commented on June 12, 2024

@takluyver Thank you for your reply, I check that file is exist and is executable.

[root@linux-59 ipykernel]# ls -l /usr/local/Python/bin/ | grep jupyter
-rwxr-xr-x 1 root root     145 Aug 17 10:35 jupyter
-rwxrwxr-x 1 root root     107 Aug 16 11:49 jupyter-console
-rwxr-xr-x 1 root root     173 Aug 17 10:33 jupyter-kernelspec
-rwxr-xr-x 1 root root     155 Aug 17 10:35 jupyter-migrate
-rwxrwxr-x 1 root root     112 Aug 16 11:49 jupyter-nbconvert
-rwxr-xr-x 1 root root     107 Aug 17 10:28 jupyter-nbextension
-rwxr-xr-x 1 root root     106 Aug 17 10:28 jupyter-notebook
-rwxrwxr-x 1 root root     111 Aug 16 11:49 jupyter-qtconsole
-rwxr-xr-x 1 root root     181 Aug 17 10:36 jupyter-serverextension
-rwxr-xr-x 1 root root     168 Aug 17 10:35 jupyter-trust
You have mail in /var/spool/mail/root
[root@linux-59 ipykernel]# chmod 777 /usr/local/Python/bin/*
[root@linux-59 ipykernel]# /usr/local/Python/bin/jupyter
: No such file or directory
[root@linux-59 ipykernel]# ls -l /usr/local/Python/bin/ | grep jupyter
-rwxrwxrwx 1 root root     145 Aug 17 10:35 jupyter
-rwxrwxrwx 1 root root     107 Aug 16 11:49 jupyter-console
-rwxrwxrwx 1 root root     173 Aug 17 10:33 jupyter-kernelspec
-rwxrwxrwx 1 root root     155 Aug 17 10:35 jupyter-migrate
-rwxrwxrwx 1 root root     112 Aug 16 11:49 jupyter-nbconvert
-rwxrwxrwx 1 root root     107 Aug 17 10:28 jupyter-nbextension
-rwxrwxrwx 1 root root     106 Aug 17 10:28 jupyter-notebook
-rwxrwxrwx 1 root root     111 Aug 16 11:49 jupyter-qtconsole
-rwxrwxrwx 1 root root     181 Aug 17 10:36 jupyter-serverextension
-rwxrwxrwx 1 root root     168 Aug 17 10:35 jupyter-trust
[root@linux-59 ipykernel]# /usr/local/Python/bin/jupyter
: No such file or directory

from jupyter_core.

takluyver avatar takluyver commented on June 12, 2024

Weird. What does the file contain? Does the first line start with #!?

from jupyter_core.

Anne623 avatar Anne623 commented on June 12, 2024

yes. the file content is

#!/usr/bin/env python
"""Launch the root jupyter command"""

from jupyter_core.command import main

if __name__ == '__main__':
    main()

from jupyter_core.

takluyver avatar takluyver commented on June 12, 2024

And can you run /usr/bin/env python? I'm clutching at straws here, it all looks completely normal.

from jupyter_core.

Anne623 avatar Anne623 commented on June 12, 2024

yes, the pic is:
image

from jupyter_core.

takluyver avatar takluyver commented on June 12, 2024

from jupyter_core.

Anne623 avatar Anne623 commented on June 12, 2024

@takluyver Yes , I open a new shell terminal. but it's the same error.

from jupyter_core.

takluyver avatar takluyver commented on June 12, 2024

Weird. What if you try:

/usr/bin/env python /usr/local/Python/bin/jupyter

from jupyter_core.

Anne623 avatar Anne623 commented on June 12, 2024

If I try ``/usr/bin/env python /usr/local/Python/bin/jupyter` it works fine.

from jupyter_core.

takluyver avatar takluyver commented on June 12, 2024

Weird. Sorry, I'm all out of ideas for now.

from jupyter_core.

darobin avatar darobin commented on June 12, 2024

Getting the same thing, right from a fresh Anaconda install. Running jupyter-notebook works, as do jupyter --help, jupyter --version, jupyter --paths

from jupyter_core.

th-walker avatar th-walker commented on June 12, 2024

@Milannju I had the same issue python -m IPython notebook worked for me - thanks.

from jupyter_core.

davidwjx avatar davidwjx commented on June 12, 2024

@Milannju thaaaanks.
python -m IPython notebook did work well for me in High Sierra 10.13.3.

from jupyter_core.

tgamauf avatar tgamauf commented on June 12, 2024

Had the same issue on Ubuntu 17.10. python3 -m IPython notebook works, sudo apt install jupyter-notebook didn't change a thing for me.

from jupyter_core.

ynsrachana avatar ynsrachana commented on June 12, 2024

my jupyter path is
jupyter --paths
config:
/root/.jupyter
/usr/etc/jupyter
/usr/local/etc/jupyter
/etc/jupyter
data:
/root/.local/share/jupyter
/usr/local/share/jupyter
/usr/share/jupyter
runtime:
/root/.local/share/jupyter/runtime
i can c d version of jupyter. but am getting d error as
python_lib_contents = listdir("{0}/python/lib".format(self.spark_home))
FileNotFoundError: [Errno 2] No such file or directory: '/python/lib'

and checked the path /usr/local/python/bin but i dont have the python folder. /usr/local/bin itself.

from jupyter_core.

Pradeep119 avatar Pradeep119 commented on June 12, 2024

in linux,
first install jupyter via sudo apt install jupyter-notebook
and use jupyter-notebook to run it

from jupyter_core.

akashshah26595 avatar akashshah26595 commented on June 12, 2024

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

from jupyter_core.

seva100 avatar seva100 commented on June 12, 2024

@slonak79, I also encountered this problem eventually; for me it was easily solved by doing
mkdir ~/.jupyter
before executing other jupyter-related commands.

from jupyter_core.

mehraanuj avatar mehraanuj commented on June 12, 2024

I was getting this issue. I did following steps-

  1. Reset your configuration file.
  2. try command jupyter notebook --allow-root (Remember to give space after notebook)

It worked!

from jupyter_core.

aniketjha1729 avatar aniketjha1729 commented on June 12, 2024

open ur terminal type: # -r
after that type jupyter notebook
This will fix ur problem

from jupyter_core.

matteocollina avatar matteocollina commented on June 12, 2024

@takluyver it works for Ubuntu 18.04

from jupyter_core.

BigZSmallY avatar BigZSmallY commented on June 12, 2024

IPython
python -m IPython notebook
It works for me too.

from jupyter_core.

Adnan0208 avatar Adnan0208 commented on June 12, 2024

Try this commend: python -m IPython notebook

Ahh...this command worked for me. I was searched a lot on this and finally to uninstall everything and want to do it again with installation of Anaconda. But saved! Thanks a lot.

from jupyter_core.

BasharAlmomaine avatar BasharAlmomaine commented on June 12, 2024

python -m IPython notebook

Where to use it?

from jupyter_core.

kevin-bates avatar kevin-bates commented on June 12, 2024

python -m IPython notebook

Where to use it?

You would use this from a terminal window - although I don't think that answers your question. Please note that use of IPython to run a notebook is a bit outdated and the more current command would be python -m jupyter notebook.

Are you asking because you're getting No such file issues when running jupyter?
Could you provide information relative to your issue?
Could you provide the output of jupyter troubleshoot?

from jupyter_core.

BasharAlmomaine avatar BasharAlmomaine commented on June 12, 2024

python -m jupyter notebook

Greetings,
Thank you for your concern.
I tried to write this code" python -m jupyter notebook " in the terminal but with no solution, I still have the same results.
yes, I am asking about the no file issue when running in jupytur.
Please see the 2 attachments below regarding the issue whenever I run the code.

image
image

from jupyter_core.

ivanov avatar ivanov commented on June 12, 2024

Hey there, I'm going through old issues and it seems to me that it makes sense to close this one. Other than the unrelated simple FileNotFound error posted within the last month, this issue did not have any activity for the past 2 years. It looks like most folks who ran into this were using a mix of packages that shipped with their distribution or conda and pip. Hopefully anyone who runs into this can try some of the workarounds proposed here.

Thanks everyone and happy hacking! :bowtie:

from jupyter_core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.