# 错误：无效的索引URL：'https://example.com/simple' - URL方案必须是http或https

- **ID:** `python/pip-index-url-invalid`
- **领域:** python
- **类别:** config_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

pip索引URL格式错误，可能缺少方案或使用不支持的方案。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.9 | active | — | — |

## 解决方案

1. **** (95% 成功率)
   ```
   pip install -i https://pypi.org/simple package
   ```
2. **** (90% 成功率)
   ```
   Create ~/.pip/pip.conf with [global] index-url = https://pypi.org/simple
   ```
3. **** (90% 成功率)
   ```
   Ensure the URL starts with http:// or https://
   ```

## 无效尝试

- **** — May still be malformed. (50% 失败率)
- **** — Uses default index, not the intended one. (70% 失败率)
- **** — Same issue. (80% 失败率)
