安装时显示下列问题请大神帮忙看一看 怎样解决
```bash
G:\GO\go\src\project>go get github.com/labstack/echo/...
# cd C:\Users\Administrator\go\src\github.com\labstack\gommon; git pull --ff-only
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.
package github.com/labstack/gommon/color: exit status 1
package github.com/labstack/gommon/log: cannot find package "github.com/labstack/gommon/log" in any of:
G:\GO\go\src\github.com\labstack\gommon\log (from $GOROOT)
C:\Users\Administrator\go\src\github.com\labstack\gommon\log (from $GOPATH)
package golang.org/x/crypto/acme/autocert: unrecognized import path "golang.org/x/crypto/acme/autocert" (https fetch: Get https://golang.org/x/crypto/acme/autocert?go-get=1: net/http: TLS handshake timeout)
package github.com/labstack/gommon/bytes: cannot find package "github.com/labstack/gommon/bytes" in any of:
G:\GO\go\src\github.com\labstack\gommon\bytes (from $GOROOT)
C:\Users\Administrator\go\src\github.com\labstack\gommon\bytes (from $GOPATH)
package github.com/labstack/gommon/random: cannot find package "github.com/labstack/gommon/random" in any of:
G:\GO\go\src\github.com\labstack\gommon\random (from $GOROOT)
C:\Users\Administrator\go\src\github.com\labstack\gommon\random (from $GOPATH)
```
因为echo用到了golang.org的某些包,而这些包又不在墙内,所以你需要网络翻墙。
还有你把gopath放到c盘有些不安全,万一不是管理员写不进去。
#5
更多评论
我试了下,没有问题。感觉你的 GOPATH 包含了多个路径(当然,应该跟这个没啥关系)。
可以这样试试:`go get -v -u github.com/labstack/echo`,看输出过程!
#1