Below I want to show how you can enable python for websites running on the apache webserver in Ubuntu. Install…