Closed wqw547243068 closed 2 years ago
问题
- 执行:go run test_run.go
- 错误提示:build command-line-arguments: cannot find module for path _/Users/wqw/Desktop/code/nlp_base/sug/suggestion/darts
环境变量:
- go version go1.17.6 darwin/amd64
- GOPATH已经设置为当前目录
export GOROOT=/usr/local/go export PATH=$PATH:$GOROOT/bin export GOPATH=$HOME/Desktop/code/nlp_base/sug/suggestion
注:
- 方法1没问题,看着像是本地包导入失败
已解决,方法:
问题
注: