我已经尝试为基板安装所有东西并达到了这一点。我无法理解我在这里遇到问题的方式或原因。
我在 Windows 10 上运行,到目前为止一切似乎都很好。
curl https://sh.rustup.rs -sSf | sh
source ~/.cargo/enventer code here
返回的错误是:
sh : The term 'sh' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:2 char:34
+ curl https://sh.rustup.rs -sSf | sh
+ ~~
+ CategoryInfo : ObjectNotFound: (sh:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
source : The term 'source' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:4 char:1
+ source ~/.cargo/env
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (source:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException