I installed Jupyter Notebook using pip install notebook
but I am not able to run it.
When I try runing using jupyter notebook
, it gives me the CommandNotFoundException
:
and
When I try runing using python -m notebook
, it gives me the ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython'
:
I have added the following into PATH:
All the jupyter dependencies(jupyter.exe, jupyter-core.exe, etc) are present in scripts folder inside 'Roaming' folder and not inside 'local' folder.
python version: 3.8.4
pip version: 20.1.1
Use: python3 -m notebook
in the terminal.
I had worked with Jupyter Notebook and usually the cause for most of the cases is missing dependecy - Jupyter got a lot of them.
Please check if they are not missing by running:
python -m pip check
or
pip check
This will give you list of missed (sometimes there are versions problems) dependencies. Installing proper version with pip install <dep>==<version>
should help.
Edited: @Divyessh Maheshwari, if you have installed anaconda, then make sure you are running jupyter notebook
in the anaconda prompt.
If you haven't and you don't want to install anaconda, you might need to downgrade Python according to this answer Is there a way to run Jupyter Notebooks Without Anaconda?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.