1、在虚拟机上卸载安装几个不同版本Go之后,提示使用GoLand编译时提示 compile: version “go1.13.x“ does not match go tool version “go1.16.5“ 但在使用VsCode和go env时没有问题。 2、解决办法 将/usr/bin目录下的go,gofmt软链接替换成16.5版本的即可。从下图可以看到之前是链接的1.13版本