解决unrecognized import path "golang.org/x/..问题

1. 项目:

Cothority
参考:cothority, 可以扩展的集体授权 Prototype

2. 执行语句:
go get github.com/dedis/cothority/status

3. 出现问题:

package golang.org/x/crypto/blake2b: unrecognized import path “golang.org/x/crypto/blake2b” (https fetch: Get https://golang.org/x/crypto/blake2b?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)

package golang.org/x/sys/cpu: unrecognized import path “golang.org/x/sys/cpu” (https fetch: Get https://golang.org/x/sys/cpu?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)

4. 解决

参考: unrecognized import path "golang.org/x/sync

golang 在 github 上建立了一个镜像库,下载github上的镜像库放入GOPATH下即可

mkdir -p $GOPATH/src/golang.org/x
cd $GOPATH/src/golang.org/x
git clone https://github.com/golang/sync.git
git clone https://github.com/golang/crypto.git
git clone https://github.com/golang/sys.git

然后再执行go get就好了。
解决unrecognized import path

解决unrecognized import path

你可能感兴趣的:(golang,unrecognized,import,path,"golang.or,Linux进阶之路)