venv is a local Python environment for this project. It stores project packages separately from the system Python installed in Windows.
A virtual environment contains absolute paths in venv\pyvenv.cfg. If the project is copied from another PC, that file can still point to an old Python path that does not exist on the new computer.
Example:
home = C:\Users\OldUser\AppData\Local\Programs\Python\Python313
When that old path is missing, the project venv must be recreated.
Do not delete the system Python just because project venv is broken.
Do not delete the whole project.
Only the local project folder venv needs to be recreated.
Use Python Manager:
Первый запуск на новом ПК
or:
Зависимости -> Виртуальное окружение проекта (venv)
The manager will use a working system Python from this computer to create a fresh project venv. After that, install project dependencies inside the new venv.
The folders venv/ and .venv/ are local machine state and must not be committed to Git.