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

go2love · · 2015 次点击
3楼 <a href="/user/yleoer" title="@yleoer">@yleoer</a> 报错呢: ``` C:\Users\Gao\go\src&gt;go get github.com/xuri/excelize/v2 cannot find package &#34;github.com/xuri/excelize/v2&#34; 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&gt;go get github.com/xuri/excelize package golang.org/x/net/html/charset: unrecognized import path &#34;golang.org/x/net/html/charset&#34;: https fetch: Get &#34;https: //golang.org/x/net/html/charset?go-get=1&#34;: 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 &#34;golang.org/x/text/encoding/unicode&#34;: https fetch: G et &#34;https://golang.org/x/text/encoding/unicode?go-get=1&#34;: 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