gpt4 book ai didi

Golang,GOPATH 未设置错误

转载 作者:数据小太阳 更新时间:2023-10-29 03:38:42 24 4
gpt4 key购买 nike

当我尝试运行 go 代码时出现以下错误:

cannot find package "github.com/drone/routes" in any of:
/usr/local/Cellar/go/1.5.1/libexec/src/github.com/drone/routes (from $GOROOT)
($GOPATH not set)

如有任何帮助,我们将不胜感激。

最佳答案

它是说你的 GOPATH 没有设置。我建议看一下 Go docs进行配置。

关于Golang,GOPATH 未设置错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36322446/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com