首页 > 解决方案 > Conda 解决安装 `xeus-cling`

问题描述

我的终端在不安装xeus-cling软件包的情况下继续运行。我已经坚持了2个多小时了。

(base) ifeanyichukwuobeta@ifeanyiukwusMBP ~ % conda install xeus-cling -c conda-forge
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \ 

标签: pythoncondaxeus-cling

解决方案


该软件包用于 Jupyter 中的 C++ 内核支持。Jupyter + Conda 更惯用的做法是将 Jupyter 和每个内核保持在单独的环境中。

Jupyter 环境

conda create -n jupyter jupyter nb_conda_kernels

C++ 内核

conda create -n xeus xeus-cling

在此设置中,总是会从激活的环境中启动 Jupyter jupyter,然后xeus为笔记本选择内核。

conda activate jupyter
jupyter notebook

推荐阅读