小编Kev*_*Yin的帖子

如何在 google colab notebook 上执行 '!pip install tr​​ee' 后使 '!tree' 工作?

!pip install tree在 google colab notebook 上做过。它表明Pillow in /usr/local/lib/python3.6/dist-packages (from tree) (4.3.0). 但是当我使用!tree. 笔记本提醒了我bin/bash: tree: command not found。如何解决?

我尝试了几次,但都失败了。

这显示了:

Collecting tree
  Downloading https://files.pythonhosted.org/packages/29/3f/63cbed2909786f0e5ac30a4ae5791ad597c6b5fec7167e161c55bba511ce/Tree-0.2.4.tar.gz
Requirement already satisfied: Pillow in /usr/local/lib/python3.6/dist-packages (from tree) (4.3.0)
Collecting svgwrite (from tree)
  Downloading https://files.pythonhosted.org/packages/87/ce/3259f75aebb12d8c7dd9e8c479ad4968db5ed18e03f24ee4f6be9d9aed23/svgwrite-1.2.1-py2.py3-none-any.whl (66kB)
     |????????????????????????????????| 71kB 23.9MB/s 
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/dist-packages (from tree) (41.0.1)
Requirement already satisfied: click in /usr/local/lib/python3.6/dist-packages (from tree) (7.0)
Requirement already satisfied: olefile in /usr/local/lib/python3.6/dist-packages (from Pillow->tree) (0.46)
Requirement already …
Run Code Online (Sandbox Code Playgroud)

python tree google-colaboratory

3
推荐指数
1
解决办法
1246
查看次数

标签 统计

google-colaboratory ×1

python ×1

tree ×1