Jupyter notebook - Error in the command

Can you help me to solve this error while executing the command “jupyter notebook”?

(quantra_py) PS C:\Users\Home> jupyter notebook
Traceback (most recent call last):
File “C:\Users\Home\anaconda3\envs\quantra_py\Scripts\jupyter-notebook-script.py”, line 5, in
from notebook.notebookapp import main
File “C:\Users\Home\anaconda3\envs\quantra_py\lib\site-packages\notebook\notebookapp.py”, line 80, in
from .services.contents.manager import ContentsManager
File “C:\Users\Home\anaconda3\envs\quantra_py\lib\site-packages\notebook\services\contents\manager.py”, line 17, in
from nbformat import sign, validate as validate_nb, ValidationError
File “C:\Users\Home\anaconda3\envs\quantra_py\lib\site-packages\nbformat_init_.py”, line 14, in
from . import v1, v2, v3, v4
File “C:\Users\Home\anaconda3\envs\quantra_py\lib\site-packages\nbformat\v4_init_.py”, line 24, in
from .convert import downgrade, upgrade
File “C:\Users\Home\anaconda3\envs\quantra_py\lib\site-packages\nbformat\v4\convert.py”, line 12, in
from nbformat import v3, validator
File “C:\Users\Home\anaconda3\envs\quantra_py\lib\site-packages\nbformat\validator.py”, line 17, in
from .json_compat import ValidationError, validator_for_name, get_current_validator
File “C:\Users\Home\anaconda3\envs\quantra_py\lib\site-packages\nbformat\json_compat.py”, line 13, in
import jsonschema
File "C:\Users\Home\anaconda3\envs\quantra_py\lib\site-packages\jsonschema_init
.py", line 13, in
from jsonschema._format import FormatChecker
File “C:\Users\Home\anaconda3\envs\quantra_py\lib\site-packages\jsonschema_format.py”, line 11, in
from jsonschema.exceptions import FormatError
File “C:\Users\Home\anaconda3\envs\quantra_py\lib\site-packages\jsonschema\exceptions.py”, line 15, in
from referencing.exceptions import Unresolvable as Unresolvable
File "C:\Users\Home\anaconda3\envs\quantra_py\lib\site-packages\referencing_init
.py", line 5, in
from referencing._core import Anchor, Registry, Resource, Specification
File “C:\Users\Home\anaconda3\envs\quantra_py\lib\site-packages\referencing_core.py”, line 18, in
from referencing.typing import URI, Anchor as AnchorType, D, Mapping, Retrieve
File “C:\Users\Home\anaconda3\envs\quantra_py\lib\site-packages\referencing\typing.py”, line 22, in
D = TypeVar(“D”, default=Any)
TypeError: init() got an unexpected keyword argument ‘default’
(quantra_py) PS C:\Users\Home>

Hi,

Try running the code line

pip install --upgrade referencing jsonschema

in the annaconda prompt. This should help fix the issue

is this fine upon excuting the said command, there is a error text in the intallation

(quantra_py) C:\Users\Home>pip install --upgrade referencing jsonschema
Requirement already satisfied: referencing in c:\users\home\anaconda3\envs\quantra_py\lib\site-packages (0.36.0)
Collecting referencing
Downloading referencing-0.36.2-py3-none-any.whl.metadata (2.8 kB)
Requirement already satisfied: jsonschema in c:\users\home\anaconda3\envs\quantra_py\lib\site-packages (4.25.1)
Requirement already satisfied: attrs>=22.2.0 in c:\users\home\anaconda3\envs\quantra_py\lib\site-packages (from referencing) (25.3.0)
Requirement already satisfied: rpds-py>=0.7.0 in c:\users\home\anaconda3\envs\quantra_py\lib\site-packages (from referencing) (0.27.0)
Collecting typing-extensions>=4.4.0 (from referencing)
Downloading typing_extensions-4.15.0-py3-none-any.whl.metadata (3.3 kB)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in c:\users\home\anaconda3\envs\quantra_py\lib\site-packages (from jsonschema) (2025.4.1)
Downloading referencing-0.36.2-py3-none-any.whl (26 kB)
Downloading typing_extensions-4.15.0-py3-none-any.whl (44 kB)
Installing collected packages: typing-extensions, referencing
Attempting uninstall: typing-extensions
Found existing installation: typing-extensions 3.7.4.3
Uninstalling typing-extensions-3.7.4.3:
Successfully uninstalled typing-extensions-3.7.4.3
Attempting uninstall: referencing
Found existing installation: referencing 0.36.0
Uninstalling referencing-0.36.0:
Successfully uninstalled referencing-0.36.0
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
jupyterlab-server 2.27.3 requires requests>=2.31, but you have requests 2.28.2 which is incompatible.
tensorflow 2.5.0 requires typing-extensions~=3.7.4, but you have typing-extensions 4.15.0 which is incompatible.
Successfully installed referencing-0.36.2 typing-extensions-4.15.0

Hi,

I believe in the last line, the requested python libraries were installed, so it should be fine. Are you able to open the jupyter notebook.

If the problem still persists, you can try installing Microsoft Visual C++ Build Tools and then creating the environment.

Hope this helps.