Skip to content

Python Virtual Environment Setup

jhhocs edited this page Mar 22, 2024 · 5 revisions

Python Virtual Environment Setup

Prerequisites

  1. Install Python

Instructions

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

  2. Activating virtual environment: (env) 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) pyrhon3 test.py

Leaving the virtual environment: deactivate

Clone this wiki locally