目录
- 题引
- 解决方法
题引
github.com/stretchr/testify@v1.7.1: Get "https://proxy.golang.org/github.com/stretchr/testify/@v/v1.7.1.zip": dial tcp 172 .217.163.49: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.
解决方法
改成我们国内可用的代理地址
在命令提示符输入:
go env -w GOPROXY=https://goproxy.cn
然后再做各种操作就可以成功了
另外一个问题:
手动下载某些依赖包,但是goland一直无法识别。
删掉了GOPATH多余的路径。
另外,启用了一下Go Modules。
然后就好了。
以上就是golang提示dial tcp 172 .217.163.49:443: connectex: A connection attempt failed解决的详细内容,更多关于golang提示dial tcp的资料请关注其它相关文章!
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)