Python 安装指南
本文将指导您在不同操作系统上安装 Python。
Windows 安装
- 访问 Python 官网
- 下载最新版本的 Python 安装包
- 运行安装程序,确保勾选 "Add Python to PATH"
- 完成安装
macOS 安装
使用 Homebrew 安装
brew install python
使用官方安装包
- 访问 Python 官网
- 下载 macOS 安装包
- 运行安装程序
Linux 安装
大多数 Linux 发行版已预装 Python。如果没有,可以使用包管理器安装:
Ubuntu/Debian
sudo apt update
sudo apt install python3
CentOS/RHEL
sudo yum install python3