Jupyter is not opening

Hi guys, i was wunning a code and I installed a library and suddenly Jupyter stopped working. I uninstalled and installed twice but nothing, the message that appears said:

Traceback (most recent call last):
**File “C:\ProgramData\Anaconda3\Scripts\jupyter-notebook-script.py”, line 6, in **
from notebook.notebookapp import main
**File “C:\ProgramData\Anaconda3\lib\site-packages\notebook\notebookapp.py”, line 44, in **
from jinja2 import Environment, FileSystemLoader
**File “C:\ProgramData\Anaconda3\lib\site-packages\jinja2_init_.py”, line 12, in **
from .environment import Environment
**File “C:\ProgramData\Anaconda3\lib\site-packages\jinja2\environment.py”, line 25, in **
from .defaults import BLOCK_END_STRING
**File “C:\ProgramData\Anaconda3\lib\site-packages\jinja2\defaults.py”, line 3, in **
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
**File “C:\ProgramData\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\acuad\AppData\Roaming\Python\Python39\site-packages\markupsafe_init_.py)

What can i do? :frowning:

Do you remember what library you installed? By looking at paths in the traceback, it seems that you may have two conflicting installations of markupsafe: one in Anaconda3 environment, and one in AppData\Roaming. It could be a result of mixing up conda install and pip install. Could you please:

  1. provide conda list and pip list
    2 . try running pip uninstall markupsafe and checking if Jupyter now works?

Note: also seen in Jupyter Notebook Launch Error