I cannot get the ExternalEvaluate work for my Python. It says "missing dependencies" for the registration status. I have attached screenshots from Mathematica and Terminal. From the terminal screenshot you can see that I already have "pyzmq" installed. Does anyone have a solution to this?

terminal Mathematica

  • $\begingroup$ Use StartExternalSession and specify which exact Python executable you want to use. You have several installations and the one ExternalEvaluate would start does not have the dependencies installed. $\endgroup$ – Szabolcs Sep 11 '19 at 7:17
  • $\begingroup$ Thanks for the reply. But the problem for me is that all the Python executables are missing dependencies? Why is that, how to fix it? $\endgroup$ – baker Sep 12 '19 at 14:18
  • $\begingroup$ You must specify the path to the exact executable for which you installed the dependency. I don't see that one in the list. $\endgroup$ – Szabolcs Sep 12 '19 at 15:59
  • 1
    $\begingroup$ Try this: Activate the anaconda environment you want to use. Make sure the dependencies are installed in this environment. Run which python to get the correct path to the python executable. Use this path with StartExternalSession. See the docs (under Details) for how. $\endgroup$ – Szabolcs Sep 12 '19 at 20:00
  • 1
    $\begingroup$ It worked now! Thanks a lot. $\endgroup$ – baker Sep 13 '19 at 21:48

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.