I had the following problem with an installation of the Cirq.

When I typed python -m pip install cirq, I got the following line:

"Cannot uninstall 'sympy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall."

The source of this issue was in a new version of 'sympy' (1.23 instead of 1.22).

I found a simple solution to remove 'sympy' conda uninstall sympy

and then wrote this code python -m pip install cirq again. After that, everything works fine.

Could you correct this bug in the future?

  • $\begingroup$ It looks like this should be an issue on Cirq's github repository ( github.com/quantumlib/cirq/issues ) instead of a question on stack exchange. But also it looks like this is not a bug with cirq but rather a bad interaction between conda and pip. $\endgroup$ – Craig Gidney Mar 28 '20 at 0:07
  • $\begingroup$ I think, Craig Gidney, you right, but I write this issue for developers in order to fix the problem because it was a recommendation on the cite. $\endgroup$ – Elijah Mar 30 '20 at 10:04
  • $\begingroup$ Hi Elijah - both Craig and I are developers on Cirq. Do you still have this issue? $\endgroup$ – Balint Pato Aug 3 '20 at 18:32
  • $\begingroup$ Balint, thank you for your reply. I managed this problem by using Google Collab, where there is no such a problem. $\endgroup$ – Elijah Aug 5 '20 at 7:41
  • $\begingroup$ Thank you, it sounds like something might have been specific to your environment. Do you mind closing the question in that case? I think it is not that valuable to leave it here as you have no cirq version mentioned in it, so it is very hard to reproduce for people who would try to help! $\endgroup$ – Balint Pato Aug 10 '20 at 21:16

Your Answer

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

Browse other questions tagged or ask your own question.