【问题标题】:Conda solving install of `xeus-cling`Conda 解决安装 `xeus-cling`
【发布时间】:2021-07-26 10:31:58
【问题描述】:

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

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

【问题讨论】:

  • 使用基础环境进行开发是个坏主意,会导致很多问题。我建议再次删除和安装 Conda,并使用新的/单独的环境。
  • 感谢 @merv 帮助我编辑我的问题。这实际上是我第一次在 StackOverflow 上发布问题。我还在熟悉环境。

标签: python conda xeus-cling


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-05-02
    • 1970-01-01
    • 2020-05-16
    • 2019-05-22
    • 1970-01-01
    • 2020-08-10
    • 1970-01-01
    • 2020-07-27
    相关资源
    最近更新 更多