Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 1.19 KB

File metadata and controls

43 lines (25 loc) · 1.19 KB

Project venv

venv is a local Python environment for this project. It stores project packages separately from the system Python installed in Windows.

Why venv can break after copying the project

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.

What not to delete

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.

Recommended path

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.

Git

The folders venv/ and .venv/ are local machine state and must not be committed to Git.