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: \ 

解决方法

该软件包用于 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