我试图通过Jupyter Notebook中的conda下载graphviz库(后来我在终端中签入了同样的方法)。不幸的是,我看到未找到警告提示。
首先,我在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?
答案 0 :(得分:2)
conda
不是pip包。我认为某些底层版本曾经在PyPI上发布过,但如今我不会尝试使用。
安装Miniconda软件包以使用conda
:
https://docs.conda.io/en/latest/miniconda.html
并告诉pip删除其安装的conda软件包。