# Python Installation

We need to install a program (Compiler) that can translate Python code into 0s and 1s.

To learn more about it, visit [Official Python Site](https://www.python.org/downloads/).

## Installing

### Click 'Download Python'

![Python Homepage](/img/python/installation/download_python_button.png)

### Open Python Installation Window

![Python Download](/img/python/installation/download_python_box.png)

### Enable Everything & Customize Installation

![Installation Helper](/img/python/installation/option_customize_installation.png)

### Enable Everything & Next

![Setting](/img/python/installation/optional_feat.png)

### Enable option 1 ~ 5 & Instasll

![Setting2](/img/python/installation/advanced_options.png)

### Finish & Close & Restart Computer

![Finish](/img/python/installation/setup_finished.png)

## Checking

Windows: use cmd and and type in the following

Mac: use Terminal and and type in the following

```sh
python --version
```

If there are no errors, the installation is complete.

If there are errors, please follow the steps above.

![Terminal](/img/python/installation/mac-terminal.jpg) ![CMD](/img/python/installation/window-cmd.png)

## Options Explanation

| Name | Explanation |
| :-- | :-- |
| Add Python 3.10 to PATH | Whether to use the 'Python' command (only need this in windows) |
| Documentation | Whether to download the offline documentation |
| PIP | Using the python installation helper |
| tcl/tck and IDLE | GUI library and IDLE (Basic Python code runner) |
| Python test suite | Test kit |
| py launcher | Python exe file direct launcher |
| Install for all users | Whether to use for all computer users |
| Associate files with Python (requires the py launcher) | Associating files like '.py' with Python |
| Create shortcuts for intalled applications | Adding a shortcut for Python tools on Desktop |
| Precompile standard library | Precompile all the tools often used in Python |
