【发布时间】:2021-08-19 21:42:27
【问题描述】:
我使用的是 Windows 10,安装了 go 1.16.7 windows/amd64。已将 GOPATH 定义为
C:\Users\anta40\Codes\Go.
在 GOPATH 中,我运行了以下 2 个命令:
go env -w GO111MODULE=auto
go get golang.org/x/mobile/cmd/gomobile
好的,现在让我们运行gomobile
'gomobile' 未被识别为内部或外部命令, 可运行的程序或批处理文件。
嗯..这里缺少什么?
【问题讨论】:
-
您是否将
C:\Users\anta40\Codes\Go\bin包含在您的PATH 中? -
@OlegButuzov 啊忘记将其添加到 %PATH% 中。谢谢你:)