Macos 有关更多详细信息,请参见:’;转到帮助gopath’;

Macos 有关更多详细信息,请参见:’;转到帮助gopath’;,macos,go,Macos,Go,我在学围棋,我遇到了一些问题 我跟随 go install 但有一个错误: no install location for directory /Users/skan/documents/study/golang/src/section1 outside GOPATH For more details see: ’go help gopath’ 因此,我返回到我的.bash/profile # added by Anaconda3 2018.12 installer # >>&

我在学围棋,我遇到了一些问题

我跟随

go install
但有一个错误:

no install location for directory /Users/skan/documents/study/golang/src/section1 outside GOPATH

For more details see: ’go help gopath’
因此,我返回到我的.bash/profile

# added by Anaconda3 2018.12 installer
# >>> conda init >>>
# !! Contents within this block are managed by ’conda init’ !!
__conda_setup=”$(CONDA_REPORT_ERRORS=false ’/anaconda3/bin/conda’ shell.bash hook 2> /dev/null)”
if [ $? -eq 0 ]; then
\eval ”$__conda_setup”
else
if [ -f ”/anaconda3/etc/profile.d/conda.sh” ]; then
. ”/anaconda3/etc/profile.d/conda.sh”
CONDA_CHANGEPS1=false conda activate base
else
\export PATH=”/anaconda3/bin:$PATH:$GOPATH:$GOBIN”
fi
fi
unset __conda_setup
# <<< conda init <<<
export GOPATH="/Users/skan/Documetns/study/golang"
export GOBIN=$GOPATH/bin
这是我的.bash/profile

# added by Anaconda3 2018.12 installer
# >>> conda init >>>
# !! Contents within this block are managed by ’conda init’ !!
__conda_setup=”$(CONDA_REPORT_ERRORS=false ’/anaconda3/bin/conda’ shell.bash hook 2> /dev/null)”
if [ $? -eq 0 ]; then
\eval ”$__conda_setup”
else
if [ -f ”/anaconda3/etc/profile.d/conda.sh” ]; then
. ”/anaconda3/etc/profile.d/conda.sh”
CONDA_CHANGEPS1=false conda activate base
else
\export PATH=”/anaconda3/bin:$PATH:$GOPATH:$GOBIN”
fi
fi
unset __conda_setup
# <<< conda init <<<
export GOPATH="/Users/skan/Documetns/study/golang"
export GOBIN=$GOPATH/bin
#由Anaconda3 2018.12安装程序添加
#>>>康达初始化>>>
# !! 此块中的内容由“conda init”管理!!
__conda_setup=“$(conda_报告_错误=false'/anaconda3/bin/conda'shell.bash hook 2>/dev/null)”
如果[$?-等式0];然后
\评估“$\uuu conda\u设置”
其他的
如果[-f”/anaconda3/etc/profile.d/conda.sh“;然后
. ”/蟒蛇A3/etc/profile.d/conda.sh“
CONDA_CHANGEPS1=假CONDA激活基
其他的
\导出路径=“/anaconda3/bin:$PATH:$GOPATH:$GOBIN”
fi
fi
未设置条件设置
#试试看:

您看到的错误是安装目录不存在,因此安装无法执行任何操作


此外,这里还有一个输入错误:

export GOPATH="/Users/skan/Documetns/study/golang"

所以,同样的道理,但是,尝试一下
文档

那么,当您按照指示运行
go help gopath
时,您学到了什么?仅输入错误。经验法则:如果某件事不成功:至少检查3次拼写错误。