echo安装失败,提示unrecognized import path "golang.org/x/crypto/acme/autocert"?

echo安装失败,提示unrecognized import path "golang.org/x/crypto/acme/autocert"?

 

C:\Users\HOORI>go get github.com/labstack/echo

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: dial tcp 216.239.37.1:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)

 

https://github.com/golang/crypto下载crypto-master.zip文件,go安装目录在C:\go ,创建文件夹C:\Go\src\golang.org\x ,在把crypto-master.zip文件复制到x目录下,解压crypto-master.zip,把解压后的文件夹重新命名为crypto。

 

在重新执行命令: go get github.com/labstack/echo

 

转载于:https://www.cnblogs.com/tinyos/p/10022896.html

你可能感兴趣的:(echo安装失败,提示unrecognized import path "golang.org/x/crypto/acme/autocert"?)