A virtual environment is a separate folder containing its own copy of the Python interpreter links and its own installed packages. Each project gets its own, so versions never clash and your system Python stays clean.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
A virtual environment is a separate folder containing its own copy of the Python interpreter links and its own installed packages. Each project gets its own, so versions never clash and your system Python stays clean.
On Windows:
On macOS and Linux, activate with
source .venv/bin/activate.Later, anyone can recreate the same setup with
pip install -r requirements.txt.Tips: