This was developed using a Python virtual environment, I would strongly recommend to do the same if you want to clone this repository.
How to run this script
-
Clone the repository
-
Create a virtual environment inside the cloned repository folder
cd python_producer-consumer/
python3 -m venv venv
-
Activate it
On Windows, run:
venv\Scripts\activate.bat
On Unix or MacOS, run:
source venv/bin/activate
-
Install the necessary modules
pip install requirements.txt
-
Run it
On Windows, run:
py producer_consumer.py
On Unix or MacOS, run:
sudo venv/bin/python producer_consumer.py