There was an error running 'go version' command: exec: go: executable file not found in %PATH
go git 安裝好(安裝在D盤):
步驟一、點擊“Git Bash”,輸入“go get github.com/astaxie/beego”,等一會兒即可。安裝完成后,在GOPATH路徑下,我這里GOPATH的路徑是“D:\GOPATH\”,在“D:\GOPATH \pkg\github.com\”和“C:\ GOPATH \src\github.com\”路徑下能看到astaxie文件夾,還有下級beego文件夾。
步驟二、安裝bee工具(框架生成工具)
為了方便的生成框架,點擊“Git Bash”,輸入“go get github.com/beego/bee ”,同樣也是等一會兒即可。完成后,在“C:\mygo\src\github.com\”路徑下astaxie文件夾能看到下級bee文件夾。
同時,在GOPATH路徑下的src同級的bin中,有“bee.exe”文件。
關閉掉git bash 窗口,使用windows cmd 窗口,不然會報錯:
2018/08/24 19:09:49 FATAL ? ?? 0001 There was an error running 'go version' command: exec: "go": executable file not found in %PATH%
?
總結
以上是生活随笔為你收集整理的There was an error running 'go version' command: exec: go: executable file not found in %PATH的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: pycharm入门教程(非常详细)_py
- 下一篇: ServeJson undefined