You can only apply for a work permit from inside Canada if:
you have a valid study or work permit, or your spouse or parents have a study or work permit;
you are a postgraduate from a program at a Canadian university, community college, CÉGEP or publicly funded trade/technical school (or other...