Index Ai Academy
Glossary · Phase 7 · Software engineering

Lockfile

Also written: lockfiles, lock file

A file recording the exact version of every installed package, so every install gets the same ones.

pyproject.toml says what you need in general: "requests, version 2 or later". A lockfile records exactly what got installed, down to every package's package. Commit it.

Try it now

CI turns "it works on my machine" into "it works".

Learn it properly

Projects, packaging and CI · Lay out a real project, pin its dependencies and test it on every push. About 35 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write