# 错误：无法复制 'PKG-INFO'：不存在或不是常规文件

- **ID:** `python/pip-setup-py-egg-info-failed`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

源代码分发包缺少 PKG-INFO 文件，通常是由于 sdist 创建不完整或下载损坏导致。setuptools 在安装过程中需要此文件。

## 版本兼容性

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

## 解决方案

1. **** (80% 成功率)
   ```
   Download the package from PyPI manually and inspect the tarball; if corrupted, re-download. Alternatively, install from a wheel if available: pip install package.whl.
   ```
2. **** (85% 成功率)
   ```
   Install directly from the source repository: pip install git+https://github.com/user/repo.git.
   ```

## 无效尝试

- **** — If PKG-INFO is missing from the sdist, egg_info cannot generate it without the proper source files. (85% 失败率)
- **** — The issue is with the package source, not setuptools itself. (90% 失败率)
