This error arises because certain Python packages require Rust and Cargo for compiling native extensions. These are usually low-level libraries that involve performance-critical tasks or cryptography, and they use Rust as part of their build process. One of the dependencies in the Jupyter Notebook installation process relies on a package written in Rust.
Resolving this issue:
The best way to tackle this issue is to download Anaconda or Miniconda from anaconda/download. Anaconda comes with Jupyter pre-installed and hence avoids the Rust dependency issue.
Note: I also once came across a solution which says that we can resolve this error by installing rust and cargo (package manager of rust) from rust-lang/tools/install which also installs cargo by-default. Even after trying this, I got the same error again. So I do not recommend this method.
Hope this is helpful.