WolframLanguageSession在Google Colab的哪里?

2024-05-23 17:41:27 发布

您现在位置:Python中文网/ 问答频道 /正文

使用documentation中的安装方法查看Python的Wolfram客户端库:

pip install wolframclient

from wolframclient.evaluation import WolframLanguageSession
from wolframclient.language import wl, wlexpr
session = WolframLanguageSession()

这会产生错误

WolframKernelException: Cannot locate a kernel automatically. Please provide an explicit kernel path.

显然,默认路径取决于环境,也可能取决于版本。我研究了用于指定显式路径的解决方案here,但不确定如何在Google Colab上找到该路径


Tags: installpip方法fromimport路径客户端documentation
1条回答
网友
1楼 · 发布于 2024-05-23 17:41:27

为了在colab上使用wolfram引擎,谷歌必须在2020年9月部署它,但事实并非如此

您想要在colab上执行的操作是不可能的,但是可以在jupyter的本地实例上很好地工作,方法是自行安装引擎并遵循此处提到的过程:https://github.com/WolframResearch/WolframLanguageForJupyter

相关问题 更多 >