Cannot run Jupyter notebook directly in the terminal on Mac - python

I want to run jupyter notebook on my mac using jupyter notebook in the terminal, but if I run this code, it gives me an error:
vlan-2625-10-16-106-253:~ brandon$ jupyter notebook
Traceback (most recent call last):
File "/usr/local/bin/jupyter-notebook", line 5, in <module>
from notebook.notebookapp import main
ModuleNotFoundError: No module named 'notebook'
But if I use /usr/local/bin/python3.7 -m jupyter notebook, then it works.
I know maybe it's because I have several versions of python on my computer, or it's because the path of jupyter is incorrect, but I don't know how to deal with it.
vlan-2625-10-16-106-253:~ brandon$ which jupyter
/usr/local/bin/jupyter
vlan-2625-10-16-106-253:~ brandon$ which python3
/usr/local/bin/python3
If I tried to uninstall jupyter by brew uninstall jupyter or pip3 uninstall jupyter and then pip3 install jupyter, it still doesn't work.
If I install jupyter again, it shows:
vlan-2625-10-16-106-253:~ brandon$ pip3 install jupyter
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: jupyter in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (1.0.0)
Requirement already satisfied: notebook in ./Library/Python/3.7/lib/python/site-packages (from jupyter) (6.3.0)
Requirement already satisfied: nbconvert in ./Library/Python/3.7/lib/python/site-packages (from jupyter) (5.6.1)
Requirement already satisfied: qtconsole in ./Library/Python/3.7/lib/python/site-packages (from jupyter) (4.7.6)
Requirement already satisfied: ipykernel in ./Library/Python/3.7/lib/python/site-packages (from jupyter) (5.3.4)
Requirement already satisfied: jupyter-console in ./Library/Python/3.7/lib/python/site-packages (from jupyter) (6.2.0)
Requirement already satisfied: ipywidgets in ./Library/Python/3.7/lib/python/site-packages (from jupyter) (7.5.1)
Requirement already satisfied: jupyter-client in ./Library/Python/3.7/lib/python/site-packages (from ipykernel->jupyter) (6.1.7)
Requirement already satisfied: traitlets>=4.1.0 in ./Library/Python/3.7/lib/python/site-packages (from ipykernel->jupyter) (5.0.0)
Requirement already satisfied: ipython>=5.0.0 in ./Library/Python/3.7/lib/python/site-packages (from ipykernel->jupyter) (7.18.1)
Requirement already satisfied: appnope in ./Library/Python/3.7/lib/python/site-packages (from ipykernel->jupyter) (0.1.0)
Requirement already satisfied: tornado>=4.2 in ./Library/Python/3.7/lib/python/site-packages (from ipykernel->jupyter) (6.1)
Requirement already satisfied: pexpect>4.3 in ./Library/Python/3.7/lib/python/site-packages (from ipython>=5.0.0->ipykernel->jupyter) (4.8.0)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in ./Library/Python/3.7/lib/python/site-packages (from ipython>=5.0.0->ipykernel->jupyter) (3.0.7)
Requirement already satisfied: backcall in ./Library/Python/3.7/lib/python/site-packages (from ipython>=5.0.0->ipykernel->jupyter) (0.2.0)
Requirement already satisfied: pickleshare in ./Library/Python/3.7/lib/python/site-packages (from ipython>=5.0.0->ipykernel->jupyter) (0.7.5)
Requirement already satisfied: setuptools>=18.5 in ./Library/Python/3.7/lib/python/site-packages (from ipython>=5.0.0->ipykernel->jupyter) (49.2.0)
Requirement already satisfied: jedi>=0.10 in ./Library/Python/3.7/lib/python/site-packages (from ipython>=5.0.0->ipykernel->jupyter) (0.17.2)
Requirement already satisfied: decorator in ./Library/Python/3.7/lib/python/site-packages (from ipython>=5.0.0->ipykernel->jupyter) (4.4.2)
Requirement already satisfied: pygments in ./Library/Python/3.7/lib/python/site-packages (from ipython>=5.0.0->ipykernel->jupyter) (2.6.1)
Requirement already satisfied: parso<0.8.0,>=0.7.0 in ./Library/Python/3.7/lib/python/site-packages (from jedi>=0.10->ipython>=5.0.0->ipykernel->jupyter) (0.7.1)
Requirement already satisfied: ptyprocess>=0.5 in ./Library/Python/3.7/lib/python/site-packages (from pexpect>4.3->ipython>=5.0.0->ipykernel->jupyter) (0.6.0)
Requirement already satisfied: wcwidth in ./Library/Python/3.7/lib/python/site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython>=5.0.0->ipykernel->jupyter) (0.2.5)
Requirement already satisfied: ipython-genutils in ./Library/Python/3.7/lib/python/site-packages (from traitlets>=4.1.0->ipykernel->jupyter) (0.2.0)
Requirement already satisfied: widgetsnbextension~=3.5.0 in ./Library/Python/3.7/lib/python/site-packages (from ipywidgets->jupyter) (3.5.1)
Requirement already satisfied: nbformat>=4.2.0 in ./Library/Python/3.7/lib/python/site-packages (from ipywidgets->jupyter) (5.0.7)
Requirement already satisfied: jupyter-core in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from nbformat>=4.2.0->ipywidgets->jupyter) (4.7.1)
Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in ./Library/Python/3.7/lib/python/site-packages (from nbformat>=4.2.0->ipywidgets->jupyter) (3.2.0)
Requirement already satisfied: pyrsistent>=0.14.0 in ./Library/Python/3.7/lib/python/site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets->jupyter) (0.16.0)
Requirement already satisfied: six>=1.11.0 in ./Library/Python/3.7/lib/python/site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets->jupyter) (1.15.0)
Requirement already satisfied: attrs>=17.4.0 in ./Library/Python/3.7/lib/python/site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets->jupyter) (20.1.0)
Requirement already satisfied: importlib-metadata in ./Library/Python/3.7/lib/python/site-packages (from jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets->jupyter) (1.7.0)
Requirement already satisfied: terminado>=0.8.3 in ./Library/Python/3.7/lib/python/site-packages (from notebook->jupyter) (0.8.3)
Requirement already satisfied: Send2Trash>=1.5.0 in ./Library/Python/3.7/lib/python/site-packages (from notebook->jupyter) (1.5.0)
Requirement already satisfied: jinja2 in ./Library/Python/3.7/lib/python/site-packages (from notebook->jupyter) (2.11.2)
Requirement already satisfied: pyzmq>=17 in ./Library/Python/3.7/lib/python/site-packages (from notebook->jupyter) (22.0.3)
Requirement already satisfied: prometheus-client in ./Library/Python/3.7/lib/python/site-packages (from notebook->jupyter) (0.8.0)
Requirement already satisfied: argon2-cffi in ./Library/Python/3.7/lib/python/site-packages (from notebook->jupyter) (20.1.0)
Requirement already satisfied: python-dateutil>=2.1 in ./Library/Python/3.7/lib/python/site-packages (from jupyter-client->ipykernel->jupyter) (2.8.1)
Requirement already satisfied: cffi>=1.0.0 in ./Library/Python/3.7/lib/python/site-packages (from argon2-cffi->notebook->jupyter) (1.14.2)
Requirement already satisfied: pycparser in ./Library/Python/3.7/lib/python/site-packages (from cffi>=1.0.0->argon2-cffi->notebook->jupyter) (2.20)
Requirement already satisfied: zipp>=0.5 in ./Library/Python/3.7/lib/python/site-packages (from importlib-metadata->jsonschema!=2.5.0,>=2.4->nbformat>=4.2.0->ipywidgets->jupyter) (3.1.0)
Requirement already satisfied: MarkupSafe>=0.23 in ./Library/Python/3.7/lib/python/site-packages (from jinja2->notebook->jupyter) (1.1.1)
Requirement already satisfied: entrypoints>=0.2.2 in ./Library/Python/3.7/lib/python/site-packages (from nbconvert->jupyter) (0.3)
Requirement already satisfied: mistune<2,>=0.8.1 in ./Library/Python/3.7/lib/python/site-packages (from nbconvert->jupyter) (0.8.4)
Requirement already satisfied: pandocfilters>=1.4.1 in ./Library/Python/3.7/lib/python/site-packages (from nbconvert->jupyter) (1.4.2)
Requirement already satisfied: testpath in ./Library/Python/3.7/lib/python/site-packages (from nbconvert->jupyter) (0.4.4)
Requirement already satisfied: defusedxml in ./Library/Python/3.7/lib/python/site-packages (from nbconvert->jupyter) (0.6.0)
Requirement already satisfied: bleach in ./Library/Python/3.7/lib/python/site-packages (from nbconvert->jupyter) (3.1.5)
Requirement already satisfied: packaging in ./Library/Python/3.7/lib/python/site-packages (from bleach->nbconvert->jupyter) (20.4)
Requirement already satisfied: webencodings in ./Library/Python/3.7/lib/python/site-packages (from bleach->nbconvert->jupyter) (0.5.1)
Requirement already satisfied: pyparsing>=2.0.2 in ./Library/Python/3.7/lib/python/site-packages (from packaging->bleach->nbconvert->jupyter) (2.4.7)
Requirement already satisfied: qtpy in ./Library/Python/3.7/lib/python/site-packages (from qtconsole->jupyter) (1.9.0)
If I want to run .ipynb file in pyCharm, I also receive the same error:
I think it's the same problem as I cannot directly run jupyter notebook in the terminal. This problem has been bothering me a lot and i searched a lot but I still can't figure it out. I wonder if I can change the path of jupyter command? It would be helpful if someone can answer this.
Thanks in advance!

you can check if python.exe is added on path .Environment Variables >>> System variables >>> path.(This is for windows) but i think there should be sth similar.

Related

Jupyter Notebook not running

I've tried installing Jupyter Notebook and it says for everything "Requirement already Satisfied"
Requirement already satisfied: nbconvert in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter) (7.2.7)
Requirement already satisfied: jupyter-console in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter) (6.4.4)
Requirement already satisfied: notebook in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter) (6.5.2)
Requirement already satisfied: ipywidgets in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter) (8.0.4)
Requirement already satisfied: ipykernel in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter) (6.19.4)
Requirement already satisfied: qtconsole in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter) (5.4.0)
Requirement already satisfied: debugpy>=1.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipykernel->jupyter) (1.6.4)
Requirement already satisfied: ipython>=7.23.1 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipykernel->jupyter) (8.7.0)
Requirement already satisfied: comm>=0.1.1 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipykernel->jupyter) (0.1.2)
Requirement already satisfied: packaging in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipykernel->jupyter) (22.0)
Requirement already satisfied: pyzmq>=17 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipykernel->jupyter) (24.0.1)
Requirement already satisfied: matplotlib-inline>=0.1 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipykernel->jupyter) (0.1.6)
Requirement already satisfied: tornado>=6.1 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipykernel->jupyter) (6.2)
Requirement already satisfied: psutil in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipykernel->jupyter) (5.9.4)
Requirement already satisfied: nest-asyncio in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipykernel->jupyter) (1.5.6)
Requirement already satisfied: traitlets>=5.4.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipykernel->jupyter) (5.8.0)
Requirement already satisfied: jupyter-client>=6.1.12 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipykernel->jupyter) (7.4.8)
Requirement already satisfied: widgetsnbextension~=4.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipywidgets->jupyter) (4.0.5)
Requirement already satisfied: jupyterlab-widgets~=3.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipywidgets->jupyter) (3.0.5)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter-console->jupyter) (3.0.36)
Requirement already satisfied: pygments in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter-console->jupyter) (2.13.0)
Requirement already satisfied: beautifulsoup4 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from nbconvert->jupyter) (4.11.1)
Requirement already satisfied: mistune<3,>=2.0.3 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from nbconvert->jupyter) (2.0.4)
Requirement already satisfied: nbformat>=5.1 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from nbconvert->jupyter) (5.7.1)
Requirement already satisfied: bleach in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from nbconvert->jupyter) (5.0.1)
Requirement already satisfied: jinja2>=3.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from nbconvert->jupyter) (3.1.2)
Requirement already satisfied: jupyter-core>=4.7 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from nbconvert->jupyter) (5.1.1)
Requirement already satisfied: markupsafe>=2.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from nbconvert->jupyter) (2.1.1)
Requirement already satisfied: nbclient>=0.5.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from nbconvert->jupyter) (0.7.2)
Requirement already satisfied: pandocfilters>=1.4.1 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from nbconvert->jupyter) (1.5.0)
Requirement already satisfied: jupyterlab-pygments in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from nbconvert->jupyter) (0.2.2)
Requirement already satisfied: tinycss2 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from nbconvert->jupyter) (1.2.1)
Requirement already satisfied: defusedxml in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from nbconvert->jupyter) (0.7.1)
Requirement already satisfied: argon2-cffi in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from notebook->jupyter) (21.3.0)
Requirement already satisfied: Send2Trash>=1.8.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from notebook->jupyter) (1.8.0)
Requirement already satisfied: nbclassic>=0.4.7 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from notebook->jupyter) (0.4.8)
Requirement already satisfied: terminado>=0.8.3 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from notebook->jupyter) (0.17.1)
Requirement already satisfied: prometheus-client in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from notebook->jupyter) (0.15.0)
Requirement already satisfied: ipython-genutils in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from notebook->jupyter) (0.2.0)
Requirement already satisfied: qtpy>=2.0.1 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from qtconsole->jupyter) (2.3.0)
Requirement already satisfied: decorator in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (5.1.1)
Requirement already satisfied: backcall in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.2.0)
Requirement already satisfied: colorama in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.4.6)
Requirement already satisfied: pickleshare in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.7.5)
Requirement already satisfied: jedi>=0.16 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.18.2)
Requirement already satisfied: stack-data in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.6.2)
Requirement already satisfied: entrypoints in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter-client>=6.1.12->ipykernel->jupyter) (0.4)
Requirement already satisfied: python-dateutil>=2.8.2 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter-client>=6.1.12->ipykernel->jupyter) (2.8.2)
Requirement already satisfied: pywin32>=1.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter-core>=4.7->nbconvert->jupyter) (305)
Requirement already satisfied: platformdirs>=2.5 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter-core>=4.7->nbconvert->jupyter) (2.6.0)
Requirement already satisfied: notebook-shim>=0.1.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from nbclassic>=0.4.7->notebook->jupyter) (0.2.2)
Requirement already satisfied: jupyter-server>=1.8 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from nbclassic>=0.4.7->notebook->jupyter) (2.0.4)
Requirement already satisfied: jsonschema>=2.6 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from nbformat>=5.1->nbconvert->jupyter) (4.17.3)
Requirement already satisfied: fastjsonschema in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from nbformat>=5.1->nbconvert->jupyter) (2.16.2)
Requirement already satisfied: wcwidth in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->jupyter-console->jupyter) (0.2.5)
Requirement already satisfied: pywinpty>=1.1.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from terminado>=0.8.3->notebook->jupyter) (2.0.9)
Requirement already satisfied: argon2-cffi-bindings in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from argon2-cffi->notebook->jupyter) (21.2.0)
Requirement already satisfied: soupsieve>1.2 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from beautifulsoup4->nbconvert->jupyter) (2.3.2.post1)
Requirement already satisfied: six>=1.9.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from bleach->nbconvert->jupyter) (1.16.0)
Requirement already satisfied: webencodings in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from bleach->nbconvert->jupyter) (0.5.1)
Requirement already satisfied: parso<0.9.0,>=0.8.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jedi>=0.16->ipython>=7.23.1->ipykernel->jupyter) (0.8.3)
Requirement already satisfied: attrs>=17.4.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jsonschema>=2.6->nbformat>=5.1->nbconvert->jupyter) (22.2.0)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jsonschema>=2.6->nbformat>=5.1->nbconvert->jupyter) (0.19.2)
Requirement already satisfied: jupyter-server-terminals in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter-server>=1.8->nbclassic>=0.4.7->notebook->jupyter) (0.4.3)
Requirement already satisfied: anyio<4,>=3.1.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter-server>=1.8->nbclassic>=0.4.7->notebook->jupyter) (3.6.2)
Requirement already satisfied: websocket-client in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter-server>=1.8->nbclassic>=0.4.7->notebook->jupyter) (1.4.2)
Requirement already satisfied: jupyter-events>=0.4.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter-server>=1.8->nbclassic>=0.4.7->notebook->jupyter) (0.5.0)
Requirement already satisfied: cffi>=1.0.1 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from argon2-cffi-bindings->argon2-cffi->notebook->jupyter) (1.15.1)
Requirement already satisfied: asttokens>=2.1.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from stack-data->ipython>=7.23.1->ipykernel->jupyter) (2.2.1)
Requirement already satisfied: pure-eval in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from stack-data->ipython>=7.23.1->ipykernel->jupyter) (0.2.2)
Requirement already satisfied: executing>=1.2.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from stack-data->ipython>=7.23.1->ipykernel->jupyter) (1.2.0)
Requirement already satisfied: idna>=2.8 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from anyio<4,>=3.1.0->jupyter-server>=1.8->nbclassic>=0.4.7->notebook->jupyter) (3.4)
Requirement already satisfied: sniffio>=1.1 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from anyio<4,>=3.1.0->jupyter-server>=1.8->nbclassic>=0.4.7->notebook->jupyter) (1.3.0)
Requirement already satisfied: pycparser in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from cffi>=1.0.1->argon2-cffi-bindings->argon2-cffi->notebook->jupyter) (2.21)
Requirement already satisfied: pyyaml in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter-events>=0.4.0->jupyter-server>=1.8->nbclassic>=0.4.7->notebook->jupyter) (6.0)
Requirement already satisfied: python-json-logger in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jupyter-events>=0.4.0->jupyter-server>=1.8->nbclassic>=0.4.7->notebook->jupyter) (2.0.4)
Requirement already satisfied: isoduration in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jsonschema>=2.6->nbformat>=5.1->nbconvert->jupyter) (20.11.0)
Requirement already satisfied: rfc3339-validator in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jsonschema>=2.6->nbformat>=5.1->nbconvert->jupyter) (0.1.4)
Requirement already satisfied: rfc3986-validator>0.1.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jsonschema>=2.6->nbformat>=5.1->nbconvert->jupyter) (0.1.1)
Requirement already satisfied: fqdn in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jsonschema>=2.6->nbformat>=5.1->nbconvert->jupyter) (1.5.1)
Requirement already satisfied: webcolors>=1.11 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jsonschema>=2.6->nbformat>=5.1->nbconvert->jupyter) (1.12)
Requirement already satisfied: uri-template in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jsonschema>=2.6->nbformat>=5.1->nbconvert->jupyter) (1.2.0)
Requirement already satisfied: jsonpointer>1.13 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from jsonschema>=2.6->nbformat>=5.1->nbconvert->jupyter) (2.3)
Requirement already satisfied: arrow>=0.15.0 in c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from isoduration->jsonschema>=2.6->nbformat>=5.1->nbconvert->jupyter) (1.2.3)
But when I run Jupyter Notebook I get:
'jupyter' is not recognized as an internal or external command,
operable program or batch file.
I have tried adding
c:\users\david\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages
to both PATH environment variables but no luck

ModuleNotFoundError import seaborn as sns

When I type import seaborn as sns on jupyter and on VScode, it always happens ModuleNotFoundError.
I have already did pip install seaborn in my terminal.
Has someone a solution? Thank you in advance
PS
I have already done install seaborn in terminal
pip install seaborn
Requirement already satisfied: seaborn in c:\python39\lib\site-packages (0.11.1)
Requirement already satisfied: scipy>=1.0 in c:\python39\lib\site-packages (from seaborn) (1.6.3)
Requirement already satisfied: numpy>=1.15 in c:\python39\lib\site-packages (from seaborn) (1.20.3)
Requirement already satisfied: pandas>=0.23 in c:\python39\lib\site-packages (from seaborn) (1.2.4)
Requirement already satisfied: matplotlib>=2.2 in c:\python39\lib\site-packages (from seaborn) (3.4.2)
Requirement already satisfied: pytz>=2017.3 in c:\python39\lib\site-packages (from pandas>=0.23->seaborn) (2021.1)
Requirement already satisfied: python-dateutil>=2.7.3 in c:\python39\lib\site-packages (from pandas>=0.23->seaborn) (2.8.1)
Requirement already satisfied: cycler>=0.10 in c:\python39\lib\site-packages (from matplotlib>=2.2->seaborn) (0.10.0)
Requirement already satisfied: pillow>=6.2.0 in c:\python39\lib\site-packages (from matplotlib>=2.2->seaborn) (8.2.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\python39\lib\site-packages (from matplotlib>=2.2->seaborn) (1.3.1)
Requirement already satisfied: pyparsing>=2.2.1 in c:\python39\lib\site-packages (from matplotlib>=2.2->seaborn) (2.4.7)
Requirement already satisfied: six>=1.5 in c:\python39\lib\site-packages (from python-dateutil>=2.7.3->pandas>=0.23->seaborn) (1.16.0)
Numpy and pandas work.
Screen shot
Try
conda install seaborn
or
conda install -c conda-forge seaborn

Pip error while installing tensorflow: no disk space

I have been trying to install tensorflow on my system for python3.8 with pip3 v 20.1.1 ; Linux ( Ubuntu 20.04 LTS ). after the download is complete it returns error that there is not enough space:
Using cached tensorflow-2.2.0-cp38-cp38-manylinux2010_x86_64.whl (516.3 MB)
Requirement already satisfied: google-pasta>=0.1.8 in ./.local/lib/python3.8/site-packages (from tensorflow) (0.2.0)
Requirement already satisfied: protobuf>=3.8.0 in ./.local/lib/python3.8/site-packages (from tensorflow) (3.12.2)
Requirement already satisfied: tensorboard<2.3.0,>=2.2.0 in ./.local/lib/python3.8/site-packages (from tensorflow) (2.2.2)
Requirement already satisfied: opt-einsum>=2.3.2 in ./.local/lib/python3.8/site-packages (from tensorflow) (3.2.1)
Requirement already satisfied: numpy<2.0,>=1.16.0 in ./.local/lib/python3.8/site-packages (from tensorflow) (1.18.4)
Requirement already satisfied: wrapt>=1.11.1 in ./.local/lib/python3.8/site-packages (from tensorflow) (1.12.1)
Requirement already satisfied: tensorflow-estimator<2.3.0,>=2.2.0 in ./.local/lib/python3.8/site-packages (from tensorflow) (2.2.0)
Requirement already satisfied: absl-py>=0.7.0 in ./.local/lib/python3.8/site-packages (from tensorflow) (0.9.0)
Requirement already satisfied: six>=1.12.0 in /usr/lib/python3/dist-packages (from tensorflow) (1.14.0)
Requirement already satisfied: h5py<2.11.0,>=2.10.0 in ./.local/lib/python3.8/site-packages (from tensorflow) (2.10.0)
Requirement already satisfied: gast==0.3.3 in ./.local/lib/python3.8/site-packages (from tensorflow) (0.3.3)
Requirement already satisfied: astunparse==1.6.3 in ./.local/lib/python3.8/site-packages (from tensorflow) (1.6.3)
Requirement already satisfied: keras-preprocessing>=1.1.0 in ./.local/lib/python3.8/site-packages (from tensorflow) (1.1.2)
Requirement already satisfied: termcolor>=1.1.0 in ./.local/lib/python3.8/site-packages (from tensorflow) (1.1.0)
Requirement already satisfied: wheel>=0.26; python_version >= "3" in /usr/lib/python3/dist-packages (from tensorflow) (0.34.2)
Requirement already satisfied: grpcio>=1.8.6 in ./.local/lib/python3.8/site-packages (from tensorflow) (1.29.0)
Requirement already satisfied: scipy==1.4.1; python_version >= "3" in ./.local/lib/python3.8/site-packages (from tensorflow) (1.4.1)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from protobuf>=3.8.0->tensorflow) (45.2.0)
Requirement already satisfied: google-auth<2,>=1.6.3 in ./.local/lib/python3.8/site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow) (1.16.1)
Requirement already satisfied: werkzeug>=0.11.15 in ./.local/lib/python3.8/site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow) (1.0.1)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in ./.local/lib/python3.8/site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow) (0.4.1)
Requirement already satisfied: requests<3,>=2.21.0 in /usr/lib/python3/dist-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow) (2.22.0)
Requirement already satisfied: markdown>=2.6.8 in /usr/lib/python3/dist-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow) (3.1.1)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in ./.local/lib/python3.8/site-packages (from tensorboard<2.3.0,>=2.2.0->tensorflow) (1.6.0.post3)
Requirement already satisfied: rsa<4.1,>=3.1.4 in ./.local/lib/python3.8/site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow) (4.0)
Requirement already satisfied: pyasn1-modules>=0.2.1 in ./.local/lib/python3.8/site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow) (0.2.8)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in ./.local/lib/python3.8/site-packages (from google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow) (4.1.0)
Requirement already satisfied: requests-oauthlib>=0.7.0 in ./.local/lib/python3.8/site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.3.0,>=2.2.0->tensorflow) (1.3.0)
Requirement already satisfied: pyasn1>=0.1.3 in ./.local/lib/python3.8/site-packages (from rsa<4.1,>=3.1.4->google-auth<2,>=1.6.3->tensorboard<2.3.0,>=2.2.0->tensorflow) (0.4.8)
Requirement already satisfied: oauthlib>=3.0.0 in /usr/lib/python3/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard<2.3.0,>=2.2.0->tensorflow) (3.1.0)
Installing collected packages: tensorflow
ERROR: Could not install packages due to an EnvironmentError: [Errno 28] No space left on device
I have 2GiB+ free space on all partitions except /srv, /boot and /boot/efi
What do I do?

jupyter notebook is giving error in installation. The details are in the code

I'm writing pip install jupyterlab as the cmd command. Loading, but two warnings are coming. then the installation keeps saying successful. But when I tried to start it gives the error.
I tried to install it before, but I could not get over this error somehow. I would be glad if you help.
C:\Users\HASAN>pip install jupyterlab
Collecting jupyterlab
Using cached https://files.pythonhosted.org/packages/2c/89/a4e048f198867f19d2a9f40d08c946d760ab06dd39d774940a20da47b5f9/jupyterlab-1.1.4-py2.py3-none-any.whl
Requirement already satisfied: jinja2>=2.10 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from jupyterlab) (2.10.3)
Requirement already satisfied: tornado!=6.0.0,!=6.0.1,!=6.0.2 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from jupyterlab) (6.0.3)
Requirement already satisfied: notebook>=4.3.1 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from jupyterlab) (6.0.1)
Collecting jupyterlab-server~=1.0.0
Using cached https://files.pythonhosted.org/packages/78/98/5b87b9d38176bd98f23b58a8fb730e5124618d68571a011abbd38ad4a842/jupyterlab_server-1.0.6-py3-none-any.whl
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from jinja2>=2.10->jupyterlab) (1.1.1)
Requirement already satisfied: Send2Trash in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from notebook>=4.3.1->jupyterlab) (1.5.0)
Requirement already satisfied: traitlets>=4.2.1 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from notebook>=4.3.1->jupyterlab) (4.3.3)
Requirement already satisfied: pyzmq>=17 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from notebook>=4.3.1->jupyterlab) (18.1.0)
Requirement already satisfied: jupyter-core>=4.4.0 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from notebook>=4.3.1->jupyterlab) (4.6.0)
Requirement already satisfied: ipykernel in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from notebook>=4.3.1->jupyterlab) (5.1.2)
Requirement already satisfied: jupyter-client>=5.3.1 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from notebook>=4.3.1->jupyterlab) (5.3.4)
Requirement already satisfied: nbformat in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from notebook>=4.3.1->jupyterlab) (4.4.0)
Requirement already satisfied: nbconvert in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from notebook>=4.3.1->jupyterlab) (5.6.0)
Requirement already satisfied: terminado>=0.8.1 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from notebook>=4.3.1->jupyterlab) (0.8.2)
Requirement already satisfied: prometheus-client in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from notebook>=4.3.1->jupyterlab) (0.7.1)
Requirement already satisfied: ipython-genutils in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from notebook>=4.3.1->jupyterlab) (0.2.0)
Collecting json5
Using cached https://files.pythonhosted.org/packages/30/44/062543d4a6718f99d82e5ecf9140dbdee8a03122f2c34fbd0b0609891707/json5-0.8.5-py2.py3-none-any.whl
Requirement already satisfied: jsonschema>=3.0.1 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from jupyterlab-server~=1.0.0->jupyterlab) (3.1.1)
Requirement already satisfied: decorator in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from traitlets>=4.2.1->notebook>=4.3.1->jupyterlab) (4.4.0)
Requirement already satisfied: six in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from traitlets>=4.2.1->notebook>=4.3.1->jupyterlab) (1.12.0)
Requirement already satisfied: pywin32>=1.0; sys_platform == "win32" in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from jupyter-core>=4.4.0->notebook>=4.3.1->jupyterlab) (225)
Requirement already satisfied: ipython>=5.0.0 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from ipykernel->notebook>=4.3.1->jupyterlab) (7.8.0)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from jupyter-client>=5.3.1->notebook>=4.3.1->jupyterlab) (2.8.0)
Requirement already satisfied: entrypoints>=0.2.2 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (0.3)
Requirement already satisfied: defusedxml in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (0.6.0)
Requirement already satisfied: testpath in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (0.4.2)
Requirement already satisfied: pygments in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (2.4.2)
Requirement already satisfied: pandocfilters>=1.4.1 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (1.4.2)
Requirement already satisfied: bleach in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (3.1.0)
Requirement already satisfied: mistune<2,>=0.8.1 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from nbconvert->notebook>=4.3.1->jupyterlab) (0.8.4)
Requirement already satisfied: pywinpty>=0.5; os_name == "nt" in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from terminado>=0.8.1->notebook>=4.3.1->jupyterlab) (0.5.5)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from jsonschema>=3.0.1->jupyterlab-server~=1.0.0->jupyterlab) (0.15.4)
Requirement already satisfied: attrs>=17.4.0 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from jsonschema>=3.0.1->jupyterlab-server~=1.0.0->jupyterlab) (19.3.0)
Requirement already satisfied: setuptools in c:\program files\windowsapps\pythonsoftwarefoundation.python.3.7_3.7.1520.0_x64__qbz5n2kfra8p0\lib\site-packages (from jsonschema>=3.0.1->jupyterlab-server~=1.0.0->jupyterlab) (41.2.0)
Requirement already satisfied: importlib-metadata in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from jsonschema>=3.0.1->jupyterlab-server~=1.0.0->jupyterlab) (0.23)
Requirement already satisfied: backcall in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.1.0)
Requirement already satisfied: pickleshare in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.7.5)
Requirement already satisfied: jedi>=0.10 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.15.1)
Requirement already satisfied: colorama; sys_platform == "win32" in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.4.1)
Requirement already satisfied: prompt-toolkit<2.1.0,>=2.0.0 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (2.0.10)
Requirement already satisfied: webencodings in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from bleach->nbconvert->notebook>=4.3.1->jupyterlab) (0.5.1)
Requirement already satisfied: zipp>=0.5 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from importlib-metadata->jsonschema>=3.0.1->jupyterlab-server~=1.0.0->jupyterlab) (0.6.0)
Requirement already satisfied: parso>=0.5.0 in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from jedi>=0.10->ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.5.1)
Requirement already satisfied: wcwidth in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from prompt-toolkit<2.1.0,>=2.0.0->ipython>=5.0.0->ipykernel->notebook>=4.3.1->jupyterlab) (0.1.7)
Requirement already satisfied: more-itertools in c:\users\hasan\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from zipp>=0.5->importlib-metadata->jsonschema>=3.0.1->jupyterlab-server~=1.0.0->jupyterlab) (7.2.0)
Installing collected packages: json5, jupyterlab-server, jupyterlab
WARNING: The script pyjson5.exe is installed in 'C:\Users\HASAN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts jlpm.exe, jupyter-lab.exe, jupyter-labextension.exe and jupyter-labhub.exe are installed in 'C:\Users\HASAN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed json5-0.8.5 jupyterlab-1.1.4 jupyterlab-server-1.0.6
C:\Users\HASAN>jupyter notebook
'jupyter' is not recognized as an internal or external command,
operable program or batch file.

after installing jupyter locally, I can't run jupyter notebook

On linux redhat:
I tried to install jupyter locally:
$ pip install jupyter --user
and it seems as everything was installed properly...
But - I cannot runt jupyter notebook, nor ~/.local/bin/jupyter notebook
Why?
The installation...
$ pip install jupyter --user
Collecting jupyter Using cached
jupyter-1.0.0-py2.py3-none-any.whl Requirement already satisfied:
ipywidgets in ~/.local/lib/python2.7/site-packages
(from jupyter) Requirement already satisfied: notebook in
~/.local/lib/python2.7/site-packages (from jupyter)
Requirement already satisfied: ipykernel in
~/.local/lib/python2.7/site-packages (from jupyter)
Requirement already satisfied: qtconsole in
~/.local/lib/python2.7/site-packages (from jupyter)
Requirement already satisfied: jupyter-console in
~/.local/lib/python2.7/site-packages (from jupyter)
Requirement already satisfied: nbconvert in
~/.local/lib/python2.7/site-packages (from jupyter)
Requirement already satisfied: traitlets>=4.2.1 in
~/.local/lib/python2.7/site-packages (from
ipywidgets->jupyter) Requirement already satisfied: ipython>=4.0.0 in
~/.local/lib/python2.7/site-packages (from
ipywidgets->jupyter) Requirement already satisfied:
widgetsnbextension>=1.2.6 in
~/.local/lib/python2.7/site-packages (from
ipywidgets->jupyter) Requirement already satisfied: tornado>=4 in
~/.local/lib/python2.7/site-packages (from
notebook->jupyter) Requirement already satisfied: terminado>=0.3.3;
sys_platform != "win32" in
~/.local/lib/python2.7/site-packages (from
notebook->jupyter) Requirement already satisfied: jupyter-core in
~/.local/lib/python2.7/site-packages (from
notebook->jupyter) Requirement already satisfied: jinja2 in
~/.local/lib/python2.7/site-packages (from
notebook->jupyter) Requirement already satisfied: ipython-genutils in
~/.local/lib/python2.7/site-packages (from
notebook->jupyter) Requirement already satisfied: nbformat in
~/.local/lib/python2.7/site-packages (from
notebook->jupyter) Requirement already satisfied: jupyter-client in
~/.local/lib/python2.7/site-packages (from
notebook->jupyter) Requirement already satisfied: pygments in
~/.local/lib/python2.7/site-packages (from
qtconsole->jupyter) Requirement already satisfied:
prompt-toolkit<2.0.0,>=1.0.0 in
~/.local/lib/python2.7/site-packages (from
jupyter-console->jupyter) Requirement already satisfied: mistune!=0.6
in ~/.local/lib/python2.7/site-packages (from
nbconvert->jupyter) Requirement already satisfied: entrypoints in
~/.local/lib/python2.7/site-packages (from
nbconvert->jupyter) Requirement already satisfied: decorator in
~/.local/lib/python2.7/site-packages (from
traitlets>=4.2.1->ipywidgets->jupyter) Requirement already satisfied:
enum34; python_version == "2.7" in
~/.local/lib/python2.7/site-packages (from
traitlets>=4.2.1->ipywidgets->jupyter) Requirement already satisfied:
six in ~/.local/lib/python2.7/site-packages (from
traitlets>=4.2.1->ipywidgets->jupyter) Requirement already satisfied:
setuptools>=18.5 in
~/.local/lib/python2.7/site-packages (from
ipython>=4.0.0->ipywidgets->jupyter) Requirement already satisfied:
backports.shutil-get-terminal-size; python_version == "2.7" in
~/.local/lib/python2.7/site-packages (from
ipython>=4.0.0->ipywidgets->jupyter) Requirement already satisfied:
simplegeneric>0.8 in
~/.local/lib/python2.7/site-packages (from
ipython>=4.0.0->ipywidgets->jupyter) Requirement already satisfied:
pickleshare in ~/.local/lib/python2.7/site-packages
(from ipython>=4.0.0->ipywidgets->jupyter) Requirement already
satisfied: pexpect; sys_platform != "win32" in
~/.local/lib/python2.7/site-packages (from
ipython>=4.0.0->ipywidgets->jupyter) Requirement already satisfied:
pathlib2; python_version == "2.7" or python_version == "3.3" in
~/.local/lib/python2.7/site-packages (from
ipython>=4.0.0->ipywidgets->jupyter) Requirement already satisfied:
backports.ssl-match-hostname in
~/.local/lib/python2.7/site-packages (from
tornado>=4->notebook->jupyter) Requirement already satisfied:
backports-abc>=0.4 in
~/.local/lib/python2.7/site-packages (from
tornado>=4->notebook->jupyter) Requirement already satisfied: certifi
in ~/.local/lib/python2.7/site-packages (from
tornado>=4->notebook->jupyter) Requirement already satisfied:
singledispatch in ~/.local/lib/python2.7/site-packages
(from tornado>=4->notebook->jupyter) Requirement already satisfied:
ptyprocess in ~/.local/lib/python2.7/site-packages
(from terminado>=0.3.3; sys_platform != "win32"->notebook->jupyter)
Requirement already satisfied: MarkupSafe in
~/.local/lib/python2.7/site-packages (from
jinja2->notebook->jupyter) Requirement already satisfied:
jsonschema!=2.5.0,>=2.0 in
~/.local/lib/python2.7/site-packages (from
nbformat->notebook->jupyter) Requirement already satisfied: pyzmq>=13
in ~/.local/lib/python2.7/site-packages (from
jupyter-client->notebook->jupyter) Requirement already satisfied:
wcwidth in ~/.local/lib/python2.7/site-packages (from
prompt-toolkit<2.0.0,>=1.0.0->jupyter-console->jupyter) Requirement
already satisfied: configparser>=3.5; python_version == "2.7" in
~/.local/lib/python2.7/site-packages (from
entrypoints->nbconvert->jupyter) Requirement already satisfied:
functools32; python_version == "2.7" in
~/.local/lib/python2.7/site-packages (from
jsonschema!=2.5.0,>=2.0->nbformat->notebook->jupyter) Installing
collected packages: jupyter Successfully installed jupyter-1.0.0
Set two variables first whose CMD commands are below:
set PYSPARK_DRIVER_PYTHON_OPTS=notebook
set PYSPARK_DRIVER_PYTHON=ipython
Now run pyspark with command pyspark, which will open 8888(default) port with jupyter running initiated sparkContext.

Categories

Resources