尝试安装第三方Excel包始终失败呢

go2love · 2022-03-24 12:00:32 · 2169 次点击

3楼 @yleoer 报错呢:

C:\Users\Gao\go\src>go get github.com/xuri/excelize/v2
cannot find package "github.com/xuri/excelize/v2" in any of:
        C:\Program Files\Go\src\github.com\xuri\excelize\v2 (from $GOROOT)
        C:\Users\Gao\go\src\github.com\xuri\excelize\v2 (from $GOPATH)

但是C:\Users\Gao\go\src\github.com目录里确实新增了xuri和各种.go的文件和文件夹。

去掉v2版本号试了以下,报错如下:

C:\Users\Gao\go\src>go get github.com/xuri/excelize
package golang.org/x/net/html/charset: unrecognized import path "golang.org/x/net/html/charset": https fetch: Get "https:
//golang.org/x/net/html/charset?go-get=1": dial tcp 142.251.43.17: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.
package golang.org/x/text/encoding/unicode: unrecognized import path "golang.org/x/text/encoding/unicode": https fetch: G
et "https://golang.org/x/text/encoding/unicode?go-get=1": dial tcp 142.251.43.17:443: connectex: A connection attempt fai
led because the connected party did not properly respond after a period of time, or established connection failed because
 connected host has failed to respond.
#4
更多评论

excelize昨天刚用了一切是正常的

#1

你用什么方法安装的呀?

#2