Python at Unimelb
Digital Skills TrainingSupport
  • 👩‍💻Python Digital Skills Training
  • Welcome
    • 🧐Training overview
      • 😇About Trainer
        • 😚Python Class
        • 🎬Python Tutorial
        • ✨GitHub
    • ⚠️Eligibility and Requirements
    • 🤏Expectations
    • 🦸Support
  • Python Workshops
    • 🤖Install Python
    • 🔮Virtual Environment
    • ⛔Error
    • 🎲Introduction to Python
    • 🐢Data Structure
    • 🧠Think like Python
    • 🔢Introduction to NumPy
    • 🔢Numpy 2
    • 🐼Introduction to Pandas
    • 🐼pandas 2
    • 🐼pandas 3
Powered by GitBook
On this page

Was this helpful?

  1. Python Workshops

Virtual Environment

PreviousInstall PythonNextError

Last updated 2 months ago

Was this helpful?

A virtual environment in Python is a self-contained directory that encapsulates a specific Python interpreter along with its dependencies. It allows you to create an isolated environment for your Python projects, ensuring that each project can have its dependencies without interfering with the global Python installation.

Benefits of Virtual Environments:

  • Isolation: Each project can have its own set of dependencies, avoiding conflicts between different projects.

  • Version: You can easily switch between Python versions for different projects.

  • Dependency: It helps in managing and isolating project-specific libraries and packages.

  • Clean Environment: Virtual environments keep your system's global Python environment clean.

Starting a Project with a Virtual Environment:

The first step when starting a Python project is to create a virtual environment.

For Windows Users:

Follow the step-by-step guide to set up and activate a virtual environment

For Mac Users:

Follow the provided steps to install and activate a virtual environment.

🔮
Installing Python on Windows and Mac, and Creating a Virtual Environment
4MB
Virtual Environment in Python on Windows.pdf
pdf
1MB
Virtual Environment in Python on MacOS.pdf
pdf