【问题标题】:How to fix "conda: not found" error in Ubuntu如何修复 Ubuntu 中的“conda:未找到”错误
【发布时间】:2019-12-19 07:05:00
【问题描述】:

我试图通过 Jupyter Notebook 中的 conda 下载 graphviz 库(后来我在终端中检查了它以相同的方式运行)。不幸的是,我看到 conda not found 警告。

首先,我写了这个(在 Jupyter 中):

!pip install conda --user

得到:

Requirement already satisfied: conda in /home/user_name/.local/lib/python3.6/site-packages (4.3.16)
Requirement already satisfied: pycosat>=0.6.1 in /home/user_name/.local/lib/python3.6/site-packages (from conda) (0.6.3)
Requirement already satisfied: ruamel.yaml>=0.11.14 in /home/user_name/.local/lib/python3.6/site-packages (from conda) (0.16.1)
Requirement already satisfied: requests>=2.12.4 in /usr/lib/python3/dist-packages (from conda) (2.18.4)
Requirement already satisfied: ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.8" in /home/user_name/.local/lib/python3.6/site-packages (from ruamel.yaml>=0.11.14->conda) (0.1.2)

之后,我写下一个:

!conda install python-graphviz --yes

但它显示:

/bin/sh: 1: conda: not found

如何解决此错误以使用 conda?

【问题讨论】:

    标签: python python-3.x jupyter-notebook conda graphviz


    【解决方案1】:

    conda 不是 pip 包。我认为曾经在 PyPI 上发布了一些低级版本,但我现在不会尝试使用它。

    安装 Miniconda 包以使用condahttps://docs.conda.io/en/latest/miniconda.html

    并告诉 pip 删除它安装的那个 conda 包。

    【讨论】:

      猜你喜欢
      • 2018-10-09
      • 2018-08-17
      • 1970-01-01
      • 2021-10-09
      • 2021-09-04
      • 2021-10-19
      • 2012-06-05
      • 2016-12-23
      相关资源
      最近更新 更多