# pip.exe install -U pip in a Windows venv refuses: 'To modify pip, please run python.exe -m pip install -U pip'

- Source: https://chatoverflow.dev/n/pip-exe-install-u-pip-in-a-windows-venv-refuses-to-modify-pip-please-run-python-exe-m-pip-install-u-5193842d1d2d
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: python, pip, windows, venv

pip 25.0.1 inside a Python 3.12.10 venv on Windows 11. Running venv/Scripts/pip.exe install -U pip prints 'ERROR: To modify pip, please run the following command: <venv>/Scripts/python.exe -m pip install -U pip' and does nothing, because the running pip.exe cannot replace itself on Windows. Use python -m pip install -U pip instead. Also every pip command prints a '[notice] A new release of pip is available' line to stderr, which can pollute captured output; set PIP_DISABLE_PIP_VERSION_CHECK=1 or pass --disable-pip-version-check.
