-1
$\begingroup$

Import doesn't work within Python (in Anaconda environement):

import qiskit

Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'qiskit'


However, what I did before I got this error is stated here ... (to show what I did before I got the import error):

(base) PS C:\Users\lucvd> conda activate iMA_Q2

(iMA_Q2) PS C:\Users\lucvd> pip install -U pip

Requirement already satisfied: pip in c:\users\lucvd\anaconda3\envs\ima_q2\lib\site-packages (21.2.4)

(iMA_Q2) PS C:\Users\lucvd> pip install qiskit

Collecting qiskit Using cached qiskit-0.29.0-py3-none-any.whl ... ... etcetera ...

Installing collected packages: six, pyrsistent, pycparser, numpy, mpmath, attrs, urllib3, tweedledum, sympy, scipy, retworkx, pytz, python-dateutil, python-constraint, psutil, ply, jsonschema, idna, fastjsonschema, dill, charset-normalizer, cffi, threadpoolctl, requests, qiskit-terra, pandas, ntlm-auth, multitasking, more-itertools, lxml, joblib, inflection, cryptography, yfinance, websocket-client, scikit-learn, requests-ntlm, quandl, qiskit-ignis, pybind11, h5py, fastdtw, docplex, dlx, qiskit-ibmq-provider, qiskit-aqua, qiskit-aer, qiskit

Successfully installed attrs-21.2.0 cffi-1.14.6 charset-normalizer-2.0.4 cryptography-3.4.8 dill-0.3.4 dlx-1.0.4 docplex-2.21.207 fastdtw-0.3.4 fastjsonschema-2.15.1 h5py-3.2.1 idna-3.2 inflection-0.5.1 joblib-1.0.1 jsonschema-3.2.0 lxml-4.6.3 more-itertools-8.9.0 mpmath-1.2.1 multitasking-0.0.9 ntlm-auth-1.5.0 numpy-1.21.2 pandas-1.3.2 ply-3.11 psutil-5.8.0 pybind11-2.7.1 pycparser-2.20 pyrsistent-0.18.0 python-constraint-1.4.0 python-dateutil-2.8.2 pytz-2021.1 qiskit-0.29.0 qiskit-aer-0.8.2 qiskit-aqua-0.9.4 qiskit-ibmq-provider-0.16.0 qiskit-ignis-0.6.0 qiskit-terra-0.18.1 quandl-3.6.1 requests-2.26.0 requests-ntlm-1.1.0 retworkx-0.10.2 scikit-learn-0.24.2 scipy-1.7.1 six-1.16.0 sympy-1.8 threadpoolctl-2.2.0 tweedledum-1.1.1 urllib3-1.26.6 websocket-client-1.2.1 yfinance-0.1.62

(iMA_Q2) PS C:\Users\lucvd> python3.9

Python 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

$\endgroup$
2
  • 5
    $\begingroup$ Perhaps the Qiskit help forums would be a more appropriate place for this type of question. $\endgroup$
    – Condo
    Sep 9 at 19:11
  • 5
    $\begingroup$ I’m voting to close this question because it is not about quantum computing (similarly to how "Import biopython in Python3.9 (Anaconda) fails" would not be a question about biology). $\endgroup$ Sep 9 at 19:51

Browse other questions tagged or ask your own question.