Index Ai Academy
Glossary · Phase 0 · Tools

Virtual environment

Also written: virtual environments

A separate folder of installed packages for one project, so projects don't clash.

The fix is like giving each project its own toolbox. A virtual environment (venv) is a folder inside your project that holds its own set of packages. While it's activated, python and pip in that terminal point at the environment. So whatever you install goes into this project only.

Try it now

After activating, which python points inside .venv, and pip list shows an almost empty environment.

Learn it properly

Packages and environments · Install libraries with pip and keep projects isolated with venv. About 25 minutes.

Start this free 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