描述:在运行以下没有语法错误的go文件的时候,出现以下
go run gram.go
fork/exec C:\Users\KyoDante\AppData\Local\Temp\go-build269385730\b001\exe\gram.exe: This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.
提示程序不兼容系统的版本。但是使用go env查看GOARCH=amd64,按理说不会出现这种情况。
go env
原因:使用WeGame打开DNF之后,会出现这种情况。而在关闭游戏和WeGame等程序之后,运行时仍然出现这个问题,考虑是由于打开DNF之后导致的问题。
解决:重启后可以解决。情况就是:打游戏和学习不要同时进行。
网友评论