Please use following command via terminal command windows. sudo chmod /Your folder/Your sub-folder/yourfile.py In this case, i am using sudo…