我遵循了xeus-cling的安装(创建了一个环境,激活并在那里安装了xeus-cling ),当我想在jupyter笔记本中选择C++14内核时,它只显示为Python3。我做错了什么?
发布于 2020-02-13 06:20:51
我也有同样的问题。这是因为您的环境中没有安装jupyter-notebook。正在启动的jupyter服务器是全局服务器,因此您看不到c++14选项。解决方案是:
conda env create -f environmental.yml命令。conda activate xeus-cling命令。jupyter notebook命令。<代码>H212<代码>G213您现在应该能够看到c++14和c++17选项。步骤2创建了xeus-cling环境并安装了所有正确的包版本,包括正确的jupyter notebook版本。
发布于 2021-08-21 13:18:22
在您的环境中安装notebook。
conda install xeus-cling notebook -c QuantStack -c conda-forge发布于 2022-02-03 12:03:09
您需要register new kernels in jupyter
jupyter kernelspec install PREFIX/share/jupyter/xcpp11 --sys-prefix
jupyter kernelspec install PREFIX/share/jupyter/xcpp14 --sys-prefix
jupyter kernelspec install PREFIX/share/jupyter/xcpp17 --sys-prefixhttps://stackoverflow.com/questions/59987020
复制相似问题