我已经使用 miniconda 成功地将 xeus-cling 内核安装到我的本地环境(cling)中,如下所示:https ://github.com/jupyter-xeus/xeus-cling
确保正确安装内核,我使用jupyter kernelspec list
Available kernels:
python3 /Users/ezranathanael/miniconda3/envs/cling/share/jupyter/kernels/python3
xcpp11 /Users/ezranathanael/miniconda3/envs/cling/share/jupyter/kernels/xcpp11
xcpp14 /Users/ezranathanael/miniconda3/envs/cling/share/jupyter/kernels/xcpp14
xcpp17 /Users/ezranathanael/miniconda3/envs/cling/share/jupyter/kernels/xcpp17
但是,我无法使用安装在我的紧贴环境中的 c++ 内核。
以下是初始化 c++ notebook 时出现的一些错误(我使用的是 jupyter lab):
[I 10:39:10.653 NotebookApp] Kernel started: 1272eeb3-0510-4f08-ba40-8f46a30e2c56, name: xcpp11
[W 10:39:10.695 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20210617103840 (::1) 35.300000ms referer=http://localhost:8888/notebooks/famine_data/Untitled.ipynb?kernel_name=xcpp11
[I 10:39:13.636 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
dyld: Library not loaded: @rpath/libxeus.1.dylib
Referenced from: /Users/ezranathanael/miniconda3/envs/cling/bin/xcpp
Reason: image not found
我想搜索所在的目录libxeus.1.dylib
,但不知道如何将我的目录更改为@rpath
任何建议将不胜感激!-以斯拉