Glossary · Phase 0 · Tools
Virtual environment
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,
pythonandpipin 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.
Other terms from the same lesson
- package: Code someone else wrote and published, which you install and import, like NumPy.
Never trained an AI?
Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.