【发布时间】: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