Skip to content

Python Virtual Environment Setup

  1. Creating a virtual environment: python3 -m venv test

  2. Activating virtual environment: source test/bin/activate

  3. Install dependencies: (test) pip install pika

  4. Might need to install json: (test) pip install json

  5. Run script: (test) python3 test.py

Leaving the virtual environment: deactivate