jupyter_core: Use jupyter command, It show error: No such file or directory

Hi, All, I download source code from git repo. I checkout tag 4.1.0, and I install jupyter_core from source code to replace jupyter_core which installed by anaconda. while ,when I finished install, I try use jupyter command, it show error:

: No such file or directory

Install jupyter_core from source code:

[root@linux-59 jupyter_core]# python setup.py install
running install
running build
running build_py
running build_scripts
running install_lib
creating /usr/local/Python/lib/python2.7/site-packages/jupyter_core
copying build/lib/jupyter_core/__init__.py -> /usr/local/Python/lib/python2.7/site-packages/jupyter_core
....
....
byte-compiling /usr/local/Python/lib/python2.7/site-packages/jupyter_core/tests/dotipython/profile_default/ipython_config.py to ipython_config.pyc
byte-compiling /usr/local/Python/lib/python2.7/site-packages/jupyter_core/tests/dotipython/profile_default/ipython_console_config.py to ipython_console_config.pyc
byte-compiling /usr/local/Python/lib/python2.7/site-packages/jupyter_core/tests/dotipython/profile_default/ipython_kernel_config.py to ipython_kernel_config.pyc
byte-compiling /usr/local/Python/lib/python2.7/site-packages/jupyter_core/tests/dotipython/profile_default/ipython_notebook_config.py to ipython_notebook_config.pyc
byte-compiling /usr/local/Python/lib/python2.7/site-packages/jupyter_core/tests/test_paths.py to test_paths.pyc
running install_scripts
copying build/scripts-2.7/jupyter-migrate -> /usr/local/Python/bin
copying build/scripts-2.7/jupyter -> /usr/local/Python/bin
changing mode of /usr/local/Python/bin/jupyter-migrate to 755
changing mode of /usr/local/Python/bin/jupyter to 755
running install_egg_info
Writing /usr/local/Python/lib/python2.7/site-packages/jupyter_core-4.1.0-py2.7.egg-info

I use command:

[root@linux-59 jupyter_core]# /usr/local/Python/bin/jupyter
: No such file or directory
[root@linux-59 jupyter_core]# /usr/local/Python/bin/jupyter --h
: No such file or directory

Does some config i miss?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 4
  • Comments: 39 (10 by maintainers)

Most upvoted comments

Try this commend: python -m IPython notebook

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

Does jupyter-notebook work instead of jupyter notebook?

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.

I’m having the same issue.

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

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

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

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.

On Fedora 27 I had to install python3-notebook

dnf install python3-notebook

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).

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