Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 1.18 KB

virtualenv-setup.md

File metadata and controls

56 lines (35 loc) · 1.18 KB

Virtual Environment Setup Guide

Setting up a virtual environment ensures that the project dependencies are isolated and do not interfere with other projects. Follow these steps to set up and activate a virtual environment.

Using venv

  1. Create a new virtual environment in the project directory:

    python -m venv venv
  2. Activate the virtual environment:

    • On Windows:

      .\venv\Scripts\activate
    • On macOS and Linux:

      source venv/bin/activate

Using virtualenv

To ensure that the project dependencies are isolated and do not interfere with other projects, it is recommended to use a virtual environment. Follow these steps to set up and activate a virtual environment:

  1. Install the virtualenv package if you haven't already:

    pip install virtualenv
  2. Create a new virtual environment in the project directory:

    virtualenv venv
  3. Activate the virtual environment:

    • On Windows:

      .\venv\Scripts\activate
    • On macOS and Linux:

      source venv/bin/activate