我一直在尝试设置我的Go工作空间,但它似乎不工作。每当我输入 echo %GOPATH%
, 并回应 C:Users\y\GoWorkspace
. 但是只要我输入 go
, 就会显示 go is not recognized as an internal or external command
. 这对于任何其他的Go命令都是一样的。
我使用的是Windows 8 64位版本,Go 1.2.2是32位版本。我也尝试过1.2.2 64位,但没有任何改变。
Go不是内部或外部命令
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
2条回答 默认 最新
- 普通网友 2014-05-18 13:38关注
GOPATH is the path that go uses when you build or test go applications. It does not tell Windows where your go executable is. For this you have to set you path environment variable. You can also set your GOBIN environment variable.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报