The two are interchangeable if you intend a continuative† reading: that you have lived in Europe for the two years leading to the present moment.
okI have lived in Europe for two years, and will not leave until next year.
okI have been living in Europe for two years, and will not leave until next year.
But if you intend an existential† reading, signifying that you lived in Europe for two years on at least one occasion in the past, you cannot use the progressive construction:
okI am widely travelled: I have lived in Europe for two years, in Brazil for nearly five, and in Singapore for three. BUT
∗ I am widely travelled: I have been living in Europe for two years, in Brazil for nearly five, and in Singapore for three.
†For a somewhat more detailed description of these distinct uses of the perfect, see What is the perfect, and how should I use it?, especially §3.2 Pragmatic meaning.
∗ marks an utterance as unacceptable