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?