Wolfram Computation Meets Knowledge

How do I register custom Python distributions like Anaconda with ExternalEvaluate?

ExternalEvaluate makes it possible to evaluate Python code within a Wolfram Language session using your local Python installation. ExternalEvaluate is able to locate the Python executable in the default Python installation locations, but it may not be able to find executables in custom locations.

Use RegisterExternalEvaluator to make your custom Python installation location known to your Wolfram System. For example, on Windows:

RegisterExternalEvaluator["Python", "C:\\Users\\<username>\\AppData\\Local\\Continuum\\anaconda3\\python.exe"]

Note that the “pyzmq” package must be installed for ExternalEvaluate to communicate with Python. Steps for installing “pyzmq” are described here. Some Python distributions, including Anaconda, ship with “pyzmq” by default.

Once properly registered, the custom Python executable is listed in the table returned by FindExternalEvaluators["Python"].

Is this article helpful?
Yes
No

Any comments?

Thank you for your feedback.

Submit

Contact Support

Whether you have a question about billing, activation or something more technical, we are ready to help you.

1-800-WOLFRAM (+1-217-398-0700 for international callers)

Customer Support

Monday–Friday
8am–5pm US Central Time

  • Product registration or activation
  • Pre-sales information and ordering
  • Help with installation and first launch

Advanced Technical Support (for eligible customers)

Monday–Thursday
8am–7pm US Central Time

Friday
8:30–10am & 11am–5pm US Central Time

  • Priority technical support
  • Product assistance from Wolfram experts
  • Help with Wolfram Language programming
  • Advanced installation support