go version command shows old version number after update to 1.8

后端 未结 5 1545
清歌不尽
清歌不尽 2021-02-02 09:28

Pretty much the title. I downloaded/installed Go 1.8 for OS X, but when I go

$ go version
go version go1.7.5 darwin/amd64

My .bashrc look like

5条回答
  •  孤独总比滥情好
    2021-02-02 09:44

    I installed the latest version from https://golang.org/doc/install That will replace the one in the default path which is /usr/local/go/bin/go for mac and doesn't require any manual changes to ~/.bashrc/ ~/.bash_profile on mac unless the default path was never set.

提交回复
热议问题