无法为Anaconda运行C ++环境

时间:2020-09-12 06:35:52

标签: python linux jupyter-notebook anaconda

我已经使用conda install xeus-cling -c conda-forge来设置c ++环境。
输入jupyter kernelspec list没关系

Available kernels:
  c          /home/UserName/.local/share/jupyter/kernels/c
  python3    /home/UserName/anaconda3/envs/mixed/share/jupyter/kernels/python3
  xcpp11     /home/UserName/anaconda3/envs/mixed/share/jupyter/kernels/xcpp11
  xcpp14     /home/UserName/anaconda3/envs/mixed/share/jupyter/kernels/xcpp14
  xcpp17     /home/UserName/anaconda3/envs/mixed/share/jupyter/kernels/xcpp17

但是,在打开jupyter笔记本并使用C++17创建helloworld.ipynb之后,无法加载环境。这是输出:

[I 14:33:08.063 NotebookApp] KernelRestarter: restarting kernel (1/5), new random ports
/home/littleblack/anaconda3/envs/mixed/bin/xcpp: /home/littleblack/anaconda3/envs/mixed/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/littleblack/anaconda3/envs/mixed/bin/../lib/libxeus-cling.so.0)
/home/littleblack/anaconda3/envs/mixed/bin/xcpp: /home/littleblack/anaconda3/envs/mixed/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/littleblack/anaconda3/envs/mixed/bin/../lib/libxeus.so.1)
[I 14:33:11.073 NotebookApp] KernelRestarter: restarting kernel (2/5), new random ports
/home/littleblack/anaconda3/envs/mixed/bin/xcpp: /home/littleblack/anaconda3/envs/mixed/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/littleblack/anaconda3/envs/mixed/bin/../lib/libxeus-cling.so.0)
/home/littleblack/anaconda3/envs/mixed/bin/xcpp: /home/littleblack/anaconda3/envs/mixed/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/littleblack/anaconda3/envs/mixed/bin/../lib/libxeus.so.1)
[I 14:33:14.083 NotebookApp] KernelRestarter: restarting kernel (3/5), new random ports
/home/littleblack/anaconda3/envs/mixed/bin/xcpp: /home/littleblack/anaconda3/envs/mixed/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/littleblack/anaconda3/envs/mixed/bin/../lib/libxeus-cling.so.0)
/home/littleblack/anaconda3/envs/mixed/bin/xcpp: /home/littleblack/anaconda3/envs/mixed/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/littleblack/anaconda3/envs/mixed/bin/../lib/libxeus.so.1)
[I 14:33:17.095 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
/home/littleblack/anaconda3/envs/mixed/bin/xcpp: /home/littleblack/anaconda3/envs/mixed/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/littleblack/anaconda3/envs/mixed/bin/../lib/libxeus-cling.so.0)
/home/littleblack/anaconda3/envs/mixed/bin/xcpp: /home/littleblack/anaconda3/envs/mixed/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/littleblack/anaconda3/envs/mixed/bin/../lib/libxeus.so.1)
[W 14:33:20.105 NotebookApp] KernelRestarter: restart failed
[W 14:33:20.106 NotebookApp] Kernel 985da6a1-a8a7-4797-b423-ebd2f5136aca died, removing from map.
[W 14:34:05.178 NotebookApp] Timeout waiting for kernel_info reply from 985da6a1-a8a7-4797-b423-ebd2f5136aca

我尝试安装gcc,更新conda packges,但它保持不变。 我正在使用Ubuntu 20.04 LTS。

0 个答案:

没有答案