1. 程式人生 > >go run main.go 一直提示找不到包

go run main.go 一直提示找不到包

./src/github.com/sirupsen/logrus/terminal_check_notappengine.go:9:2: cannot find package "golang.org/x/crypto/ssh/terminal" in any of

已經在對應的路徑裡從githup上面下載了對應的包了

https://github.com/golang/crypto

但還是提示這個錯誤
當時專案執行在 ~/go目錄下,引入的包之間相互呼叫不到
當把專案移動到~/go/src目錄下時,就能正常運行了
GOPATH的目錄是 ~/go