Hi @Khizar ,
To fix redis error, Pls try python -m pip install --upgrade redis.
Also, it seems a broken installation. Once follow this documentation: [Guide] How to install ERPNext v14 on Linux Ubuntu (step-by-step instructions)
I hope this helps.
Thanks!