Skip to content

Python Virtual Environment Setup

jhhocs edited this page Mar 24, 2024 · 5 revisions

Python Virtual Environment Setup

Instructions

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

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

Install the dependencies: (test) python3 -m pip install -r requirements.txt

  1. Start server (test): python app.py

  2. Install dependencies: (test) pip install pika

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

  4. run script: (test) python3 test.py

Leaving the virtual environment: deactivate

Clone this wiki locally