ERROR: Could not install packages due to an EnvironmentError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Dev\\pythonProject\\venv\\Lib\\site-packages\\numpy\\core\\memmap.py' code example

Example: Could not install packages due to an EnvironmentError: [WinError 32] The process cannot access the file because it is being used by another process

Please use python -m pip install --upgrade pip instead. More recent versions of pip has improved the error message here to provide better instructions.