# ERROR: Cannot find setup.py or pyproject.toml in the repository

- **ID:** `python/pip-install-from-git-no-setup`
- **Domain:** python
- **Category:** install_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

pip is trying to install a package from a Git repository that lacks a setup.py or pyproject.toml file, so it cannot build the package.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (80% success)
   ```
   pip install 'git+https://github.com/user/repo.git#egg=package&subdirectory=path/to/pkg'
   ```
2. **** (90% success)
   ```
   pip install package-name
   ```

## Dead Ends

- **** — --no-deps skips dependency resolution but still requires a build backend to install the package itself. (90% fail)
- **** — If setup.py is missing, this also fails. (95% fail)
