When I try to install Qiskit using Pip install Qiskit I get the error as shown in the attached snapshot.

Any help will be highly appreciated.

Qiskit install error


This issue is within the pyscf package that is required by qiskit. It says here that this error may occur with certain versions of python, and I have seen it commonly coming up with python 3.8. There are some workarounds in that link, but if you have nothing forcing you to use python 3.8, I would suggest downgrading to the next newest version before that.

I have been running on python 3.7.5 (which you should be able to install by simply specifying python=3.7 when creating a new anaconda environment) and I do not see this error.

| improve this answer | |
  • $\begingroup$ Many Thanks to you. I have been able to install qiskit. I am following the first example on qiskit.org. Now the problem is when I run the code , I am not able to see the circuit and histogram. The thing is the commands circuit.draw() and plot_histogram() are not working. I have also installed the terra visualizations. If you can provide solution to this also I will be highly thankful to you. $\endgroup$ – manik grover Nov 16 '19 at 11:46
  • $\begingroup$ This may be better to create a separate question for, as it would be easier for us to see the code and the error/output you are receiving. It also may be different depending on if you are running through a Jupyter Notebook or through the terminal. My immediate suggestions would be to make to try print(circuit) and see if you get any output, and to also make sure plot_histogram() is being imported from the correct module. If you aren't receiving an error at all, you can try saving the output from plot_histogram() and see if you can see anything that way $\endgroup$ – Matthew Stypulkoski Nov 20 '19 at 0:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.