# ERROR: Could not find a version that satisfies the requirement setup.py (from versions: none)
ERROR: No matching distribution found for setup.py

- **ID:** `python/pip-could-not-find-setup-py`
- **Domain:** python
- **Category:** install_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The user accidentally passed a local file path (setup.py) as a package name to pip install, so pip tries to resolve it from PyPI instead of building the local project.

## Version Compatibility

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

## Workarounds

1. **** (98% success)
   ```
   Run pip install . (or pip install -e . for editable mode) from the directory containing setup.py or pyproject.toml.
   ```
2. **** (96% success)
   ```
   Run python -m build, then pip install dist/yourpkg-0.1.0-py3-none-any.whl.
   ```

## Dead Ends

- **** — The problem is the argument, not pip's version. (90% fail)
- **** — setup.py is not a PyPI package; the index does not contain it. (92% fail)
- **** — --no-deps does not change how the argument is interpreted. (85% fail)
