Wolfram Computation Meets Knowledge

How do I configure the Anaconda installation of Python on Windows for ExternalEvaluate?

The Wolfram Language can interface with other programming languages through the function ExternalEvaluate. The prerequisites for using Python with ExternalEvaluate are:

  • A working installation of Python
  • The library PyZMQ

Instructions for installing PyZMQ via pip are available in the Wolfram Language Documentation.

Anaconda is a popular distribution method for Python and some commonly used libraries.

By default, Anaconda stores Python and its libraries in locations that ExternalEvaluate does not look in by default. To make Python and PyZMQ accessible to ExternalEvaluate, you must first add the appropriate directories to the environment path.

With a default installation of Anaconda in location


you must evaluate the Wolfram Language commands

SetEnvironment["PATH" -> Environment["PATH"] <> ";" <> "C:\\Users\\username\\anaconda3"]
SetEnvironment["PATH" -> Environment["PATH"] <> ";" <> "C:\\Users\\username\\anaconda3\\Library\\bin"]

before Python can be used with ExternalEvaluate.

Is this article helpful?

Any comments?

Thank you for your feedback.


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

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)

8am–5pm US Central Time

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

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