-1

似乎这些软件包不会安装在我的 Windows 10 中。

Go 已经在路径中,它的版本是:

C:\Proyectos\gcloud-app>go version
go version go1.14.2 windows/amd64

go get不起作用:

C:\Proyectos\gcloud-app>go get github.com/gin-gonic/gin
# runtime/internal/atomic
c:\go\src\runtime\internal\atomic\atomic_amd64x.go:18:6: Load redeclared in this block
        previous declaration at c:\go\src\runtime\internal\atomic\atomic_amd64.go:16:24
c:\go\src\runtime\internal\atomic\atomic_amd64x.go:24:6: Loadp redeclared in this block
        previous declaration at c:\go\src\runtime\internal\atomic\atomic_amd64.go:22:32
c:\go\src\runtime\internal\atomic\atomic_amd64x.go:30:6: Load64 redeclared in this block
        previous declaration at c:\go\src\runtime\internal\atomic\atomic_amd64.go:28:26
c:\go\src\runtime\internal\atomic\atomic_amd64x.go:36:6: LoadAcq redeclared in this block
        previous declaration at c:\go\src\runtime\internal\atomic\atomic_amd64.go:34:27
c:\go\src\runtime\internal\atomic\atomic_amd64x.go:41:6: Xadd redeclared in this block
        previous declaration at c:\go\src\runtime\internal\atomic\atomic_amd64.go:39:37
c:\go\src\runtime\internal\atomic\atomic_amd64x.go:44:6: Xadd64 redeclared in this block
        previous declaration at c:\go\src\runtime\internal\atomic\atomic_amd64.go:42:39
c:\go\src\runtime\internal\atomic\atomic_amd64x.go:47:6: Xadduintptr redeclared in this block
        previous declaration at c:\go\src\runtime\internal\atomic\atomic_amd64.go:45:47
c:\go\src\runtime\internal\atomic\atomic_amd64x.go:50:6: Xchg redeclared in this block
        previous declaration at c:\go\src\runtime\internal\atomic\atomic_amd64.go:48:36
c:\go\src\runtime\internal\atomic\atomic_amd64x.go:53:6: Xchg64 redeclared in this block
        previous declaration at c:\go\src\runtime\internal\atomic\atomic_amd64.go:51:38
c:\go\src\runtime\internal\atomic\atomic_amd64x.go:56:6: Xchguintptr redeclared in this block
        previous declaration at c:\go\src\runtime\internal\atomic\atomic_amd64.go:54:45
c:\go\src\runtime\internal\atomic\atomic_amd64x.go:56:6: too many errors

原因是什么?

4

1 回答 1

0

好吧,我在旧版本上安装了 1.14。因此,在新安装期间应该从 go 安装文件夹中删除的文件存在某种问题。

我必须手动删除c:\go安装文件夹并修复安装。

此外,我从c:\users\%username%\go.

现在安装没有警告

C:\Proyectos\gcloud-app>go get -u github.com/gin-gonic/gin
于 2020-05-10T14:48:40.377 回答