I have installed Anaconda3 (version 5.3.1 for Windows with Python 3.7, 64-bit) as the Python working enviroment, but when trying to register it as an external evaluator, it RegisterExternalEvaluator fails.

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

RegisterExternalEvaluator::invalid: -- Message text not found -- (ExternalEvaluate`Private`reason)

Mathematica can only can find the Python evaluator installed by SystemInstall["Python"], but I need to use the Anaconda version.

  • $\begingroup$ Please eliminate the trivial issues, make sure you follow the documentation precisely, and if it still does not work, then fully update/rewrite the question (don't just comment), including all relevant information (what did you do, what happened e.g. errors messages, what did you expect to happen) $\endgroup$ – Szabolcs Nov 27 '18 at 10:44
  • $\begingroup$ I am getting a failure (providing the path to the executable) with RegisterExternalEvaluator::invalid: -- Message text not found -- (ExternalEvaluatePrivatereason). $\endgroup$ – b.gates.you.know.what Nov 27 '18 at 11:26
  • $\begingroup$ See the workflow Configure Python For ExternalEvaluate in the documentation. If after following those instructions you still have an issue then see this post (155821). $\endgroup$ – Edmund Nov 27 '18 at 12:30
  • $\begingroup$ I do not use Windows anymore so I don't know where Anaconda puts the python executable. Are you sure that the file "C:\ProgramData\Anaconda3\python.exe" exists? Given the location of executables on other operating systems, that path looks a bit weird to me. $\endgroup$ – Szabolcs Nov 27 '18 at 12:47
  • $\begingroup$ @Szabolcs The path checked again is correct on Windows, perhaps RegisterExternalEvaluator is not compatible with Python 3.7 in Anaconda3 directory. $\endgroup$ – Jerry Nov 27 '18 at 13:31

After reinstalling Anaconda different versions many times, it comes true that MMA does not support registering Python3.7 as an external evaluator now, so if Anaconda chosen to be used, choose the right version is necessary here, Anaconda3-5.2.0, which integrated Python3.6, more versions could be found at the archive site .

When Anaconda5.2 installed, follow the offical steps to make it. see more here and help center.

  • $\begingroup$ I see no problems with Python 3.7 on macOS i.stack.imgur.com/yhuq9.png $\endgroup$ – Szabolcs Dec 2 '18 at 8:20
  • $\begingroup$ @Szabolcs Thanks! I have no idea about ver.3.7 on MacOS, using Windows. $\endgroup$ – Jerry Dec 2 '18 at 8:47
  • $\begingroup$ Have you asked WRI Support? $\endgroup$ – Kuba Dec 2 '18 at 11:09
  • $\begingroup$ @Kuba Not yet. I just try to determine whether it's proper to work with Python in the notebook or not. The default method supported by SystemInstall is enough at the end. $\endgroup$ – Jerry Dec 2 '18 at 11:42

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.