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"].

该文档是否有帮助?

任何建议?

非常感谢您的反馈!

提交

联系支持团队

从账单到产品激活,以及任何技术相关内容,无论您遇到任何问题,我们都在此为您提供帮助。

1-800-WOLFRAM (+1-217-398-0700 美国境外用户)

客服支持

周一至周五
8am–5pm 美国中部时区

  • 产品注册或激活
  • 预售信息和订单
  • 安装帮助和首次启动

高级技术支持 (面向特定用户)

周一至周四
8am–7pm 美国中部时区

周五
8:30–10am & 11am–5pm 美国中部时区

  • 优先技术支持
  • Wolfram 专家助理专员
  • Wolfram 语言编程帮助
  • 高级安装支持