- create virtual environment
pyenv install 3.12.4
- set the local python version
pyenv local 3.12.4
- create virtual environment with
venv
pyenv exec python -m venv kafka_env
- activate the virtual environment
source kafka_env/bin/activate
- install the required packages
kafka_env/bin/pip3 install -r requirements.txt
kafka_env/bin/python3 stream.py