Not able to launch Jupyter notebbook

Hi,

Can somebody help me as i am not able to launch Jupyter notebook.

Getting below error

Traceback (most recent call last):
File “C:\Users\Lenovo\anaconda3\Scripts\jupyter-notebook-script.py”, line 6, in
from notebook.notebookapp import main
File “C:\Users\Lenovo\anaconda3\lib\site-packages\notebook\notebookapp.py”, line 44, in
from jinja2 import Environment, FileSystemLoader
File “C:\Users\Lenovo\anaconda3\lib\site-packages\jinja2_init_.py”, line 12, in
from .environment import Environment
File “C:\Users\Lenovo\anaconda3\lib\site-packages\jinja2\environment.py”, line 25, in
from .defaults import BLOCK_END_STRING
File “C:\Users\Lenovo\anaconda3\lib\site-packages\jinja2\defaults.py”, line 3, in
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File “C:\Users\Lenovo\anaconda3\lib\site-packages\jinja2\filters.py”, line 13, in
from markupsafe import soft_unicode
ImportError: cannot import name ‘soft_unicode’ from ‘markupsafe’ (C:\Users\Lenovo\AppData\Roaming\Python\Python39\site-packages\markupsafe_init_.py)

1 Like

dear MUDASSIR_KHAN.

Thank you for your contribution to the anaconda community.

Most likely it’s because you haven’t read the error code, but it’s a very simple error.

It’s because markupsafe isn’t imported.

ImportError: cannot import name ‘soft_unicode’ from ‘markupsafe’ (C:\Users\Lenovo\AppData\Roaming\Python\Python39\site-packages\markupsafe_init_.py)

To solve this cause, please execute the following command at the command prompt.

conda install -c anaconda markupsafe

Best regards.
ktsh.tanaka.2020