加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

golang go get出现"go: missing Git command"异常

发布时间:2020-12-16 18:44:15 所属栏目:大数据 来源:网络整理
导读:今天在windows下面go get一个github上的第三方库时出现异常(也是第一次在windows下面使用go get) 如下: go get github.com/seefan/gossdb 出现如下错误: go: missing Git command. See http: //golang .org/ s/gogetcmd package github.com/seefan/gossdb :

今天在windows下面go get一个github上的第三方库时出现异常(也是第一次在windows下面使用go get)

如下:

>go get github.com/seefan/gossdb

出现如下错误:

go: missing Git command. See http://golang.org/s/gogetcmd package github.com/seefan/gossdb: exec: "git": executable file not found in %PATH%

原来是没有在环境变量PATH中配置git的bin路径

解决办法:
在环境变量PATH后面添加上git安装的bin目录路径即可

;C:Program FilesGitbin

PS: 每个PATH环境变量值用”;”分割
参考: http://www.xuebuyuan.com/2177071.html

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读