Problem with importing pennylane on conda

I tried with Anaconda and I installed pennylane regularly with pip install pennylane on command prompt, but when I import the package (import pennylane) on spyder I get this error:
if (p_rep := new_op._pauli_rep) is not None:
SyntaxError: invalid syntax

Do you have any idea?

Hi @Eleonora_Panini! I’ve provided an answer here so let’s continue the conversation on that thread.