# DeprecationWarning: `setup.py develop` is deprecated. Use `pip install -e .` instead.
error: invalid command 'develop'

- **ID:** `python/pip-legacy-setup-py-develop-invocation`
- **Domain:** python
- **Category:** install_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

setuptools removed the `develop` command in v64. Running `python setup.py develop` on modern setuptools fails because the command class no longer exists.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| setuptools>=64 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   Use pip's editable install instead:

pip install -e .

This uses PEP 660 editable wheels and works with modern setuptools/hatchling/flit.
   ```
2. **** (70% success)
   ```
   For legacy projects that must run setup.py directly, invoke build_editable via the backend:

python -m build --wheel --no-isolation
pip install dist/mypackage-*.whl
# or with the PEP 660 hook:
python -c "from setuptools import build_meta; build_meta.build_editable('/tmp/out')"
   ```

## Dead Ends

- **** — Downgrading setuptools globally breaks other packages that require newer setuptools features and is not a sustainable fix. (70% fail)
- **** — The --user flag does not resurrect the removed command; the error is the same. (95% fail)
