I am trying to import IBMQ from qiskit. But I encountered following error.
ImportError Traceback (most recent call last)
Cell In[1], line 1
----> 1 from qiskit import IBMQ
File ~\anaconda3\lib\site-packages\qiskit\__init__.py:38
36 _suppress_error = os.environ.get("QISKIT_SUPPRESS_1_0_IMPORT_ERROR", False) == "1"
37 if int(_major) > 0 and not _suppress_error:
---> 38 raise ImportError(
39 "Qiskit is installed in an invalid environment that has both Qiskit >=1.0"
40 " and an earlier version."
41 " You should create a new virtual environment, and ensure that you do not mix"
42 " dependencies between Qiskit <1.0 and >=1.0."
43 " Any packages that depend on 'qiskit-terra' are not compatible with Qiskit 1.0 and"
44 " will need to be updated."
45 " Qiskit unfortunately cannot enforce this requirement during environment resolution."
46 " See https://qisk.it/packaging-1-0 for more detail."
47 )
ImportError: Qiskit is installed in an invalid environment that has both Qiskit >=1.0 and an earlier version. You should create a new virtual environment, and ensure that you do not mix dependencies between Qiskit <1.0 and >=1.0. Any packages that depend on 'qiskit-terra' are not compatible with Qiskit 1.0 and will need to be updated. Qiskit unfortunately cannot enforce this requirement during environment resolution. See https://qisk.it/packaging-1-0 for more detail.
I also run pip install qiskit-ibmq-provider
.
Can you please help to solve this error?