---
title: Installing Go
localeTitle: 安装Go
---
# 安装Go

## 在Ubuntu中安装Go

*   [使用apt-get安装Go](https://guide.freecodecamp.org/go/installing-go/ubuntu-apt-get) 。这是在ubuntu中安装go的最简单方法。
*   [使用tarball安装Go](https://guide.freecodecamp.org/go/installing-go/ubuntu-tarball) 。如果您希望安装最新的稳定版本的go，请使用此方法。

## 在Mac OS X中安装Go

*   [使用Package Installer安装Go](https://guide.freecodecamp.org/go/installing-go/mac-package-installer) 。最简单的方法来安装最新的稳定版go。
*   [使用tarball安装Go](https://guide.freecodecamp.org/go/installing-go/mac-tarball) 。对于那些希望使用终端的人。

## 在Windows中安装Go

*   [使用MSI安装程序安装Go](https://guide.freecodecamp.org/go/installing-go/windows-installer)

## 从源代码安装Go

*   要从源reffer安装Go到[源文档](https://golang.org/doc/install/source)的[安装](https://golang.org/doc/install/source)

参考： [golang安装文档](https://golang.org/doc/install#install)