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

Este artigo foi útil?
Sim
Não

Algum comentário?

Obrigado pelo seu feedback.

Enviar

Entre em contato com o Suporte

Caso tenha alguma dúvida sobre cobrança, ativação ou suporte técnico, estamos a sua total disposição.

1-800-WOLFRAM (+1-217-398-0700 para chamadas internacionais)

Suporte ao consumidor

Segunda–Sexta
8:00–17:00 Horário Central dos EUA

  • Registro ou ativação do produto
  • Informações de pré-venda e pedidos
  • Ajuda com instalação e início

Suporte técnico avançado (para clientes habilitados)

Segunda–Quinta
8:00–19:00 Horário Central dos EUA

FSexta
8:30–10:00 & 11:00–17:00 Horário Central dos EUA

  • Suporte técnico prioritário
  • Assistência com especialistas da Wolfram
  • Ajuda com a programação da Wolfram Language
  • Suporte avançado de instalação