Manually uninstalled everything one by one except
Thanks for the continuous help and inputs
Code:
pip uninstall markupsafe
Found existing installation: MarkupSafe 2.0.1
Not uninstalling markupsafe at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'MarkupSafe'. No files were found to uninstall.
Thanks for the continuous help and inputs