You cannot apply for asylum directly from outside of Canada.
You would either need to find a Sponsorship Agreement Holder organization to sponsor you. Or a Group of Five sponsorship if you have family or close friends in Canada who can make these arrangements.