I followed this tutorial https://reference.wolfram.com/language/tutorial/ConfigurePythonForExternalEvaluate.html, installed zmq, restarted mathematica and put this code:

RegisterExternalEvaluator["Python", "C:\\ProgramData\\Anaconda3\\python"]

(it is the good path to the python executable, I also tried without the .exe)

However mathematica returns me

RegisterExternalEvaluator::location: The executable C:\ProgramData\Anaconda3\python isn't usable for ExternalEvaluate.

The command FindExternalEvaluators["Python"] only returns me the same error.

How to fix it ?

  • $\begingroup$ The path should be the full absolute path name to the executable itself (not a directory containing it). The .exe should not be omitted. $\endgroup$ – Szabolcs Jul 4 at 18:45
  • $\begingroup$ @Szabolcs python.exe is exactly this file. I added the .exe but it doesnt work $\endgroup$ – StarBucK Jul 4 at 22:48
  • $\begingroup$ @StarBucK do you have a username you use on your machine? Maybe this is what is missing from the file path. $\endgroup$ – CA Trevillian Jul 7 at 8:07

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.