# 错误：python_requires='>=3.7' 但已安装的 Python 版本是 3.6.9

- **ID:** `python/setuptools-python-requires-error`
- **领域:** python
- **类别:** config_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

该包指定了当前解释器不满足的最低 Python 版本。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.6 | active | — | — |
| 3.7 | active | — | — |
| 3.8 | active | — | — |

## 解决方案

1. **Upgrade Python to a supported version** (95% 成功率)
   ```
   Install Python 3.7+ from python.org or use a version manager like pyenv: `pyenv install 3.9.10 && pyenv global 3.9.10`
   ```
2. **Use a virtual environment with a compatible Python version** (90% 成功率)
   ```
   `python3.7 -m venv myenv && source myenv/bin/activate && pip install package`
   ```

## 无效尝试

- **Ignoring the error and forcing installation with --ignore-requires-python** — This flag does not exist; pip will still enforce python_requires. (90% 失败率)
- **Downgrading the package to an older version that supports Python 3.6** — The older version may have other issues or missing features. (50% 失败率)
