Is it possible live in any EU country while working for another country outside of the EU (let's say Canada or USA)?

I'm Canadian. While I'm planning to find a job in Canada, I'm thinking about staying in a EU country for around 60 days every year. That is, to experience a whole new life. I'm not permanently staying in a European country though as most of the time spent will still be in Canada. However, I don't want to give up the chances of having a second home.

Is it possible live in any EU country while working for another country outside of the EU (let's say Canada or USA)?
Post Opinion