I have been using pennylane for quantum circuit building, but while compiling I am getting the following error:
Traceback (most recent call last):
File "/home/shuhul.handoo/shuhul/code/train.py", line 2, in <module>
from models import build_generator, build_discriminator
File "/home/shuhul.handoo/shuhul/code/models.py", line 9, in <module>
from penn import quantum_layr
File "/home/shuhul.handoo/shuhul/code/penn.py", line 1, in <module>
import pennylane as qml
File "/home/shuhul.handoo/anaconda3/lib/python3.9/site-packages/pennylane/__init__.py", line 25, in <module>
from semantic_version import SimpleSpec, Version
ImportError: cannot import name 'SimpleSpec' from 'semantic_version' (/home/shuhul.handoo/anaconda3/lib/python3.9/site-packages/semantic_version/__init__.py)
First I thought this was error with installing Pennylane using pip
but after installing pennylane using the command conda install -c conda-forge pennylane
I still get this error. What should be done?