Issues importing Pennylane

I installed Pennylane and am now trying to import it on a python notebook on VS Code, but it gives me an error I do not understand. Any suggestions? I am using Python 3.8.6 so that doesn’t seem to be the issue

import pennylane as qml

If you want help with diagnosing an error, please put the full error message below:

TypeError                                 Traceback (most recent call last)
<ipython-input-1-513b7c8af88d> in <module>
----> 1 import pennylane as qml

/opt/anaconda3/lib/python3.8/site-packages/pennylane/ in <module>
     31 import pennylane.operation
     32 import pennylane.qnn
---> 33 import pennylane.templates
     34 import pennylane.pauli
     35 from pennylane.pauli import pauli_decompose

/opt/anaconda3/lib/python3.8/site-packages/pennylane/templates/ in <module>
     19 from .layer import *
     20 from .layers import *
---> 21 from .embeddings import *
     22 from .subroutines import *
     23 from .state_preparations import *

/opt/anaconda3/lib/python3.8/site-packages/pennylane/templates/embeddings/ in <module>
     18 """
---> 20 from .angle import AngleEmbedding
     21 from .amplitude import AmplitudeEmbedding
     22 from .basis import BasisEmbedding
---> 91         else metadata.entry_points(group="pennylane.compilers")
     92     )

TypeError: entry_points() got an unexpected keyword argument 'group'

Hi @Hrishikesh_Patel!

The minimum Python version that PennyLane is compatible with is 3.9. We’d recommend upgrading to a recent version such as Python 3.11.

Let us know if you need any help with that!

1 Like

That worked, thanks a lot!