'Unable to install Rust

I am trying to install Rust. However I'm unable to complete the installation due to this error:

E:\My Projects\solana>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
'sh' is not recognized as an internal or external command,
operable program or batch file.

What does this error mean?



Solution 1:[1]

It seems that you are attempting to use a unix shell program (sh) to execute a script downloaded from curl on a Windows-based machine. This is unlikely to work. Look at this link instead: https://forge.rust-lang.org/infra/other-installation-methods.html

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nathaniel Ford