Windows10操作系统中运行cmd ,键入go run hello.go出现错误提示

Windows10操作系统中运行cmd ,键入go run hello.go出现hello.go:3:8: package fmt is not in GOROOT (C:\Program Files\Go\bin\src\fmt)
package command-line-arguments: cannot find package

go run hello.go

hello.go:3:8: package fmt is not in GOROOT (C:\Program Files\Go\bin\src\fmt)
package command-line-arguments: cannot find package

你在windows中go是不是全局变量 不是得话最好跑到go得安装根目录进行运行文件