从GitHub存储库下载单个文件夹或目录到Colab

问题描述 投票:0回答:1

This主题建议:

svn checkout https://github.com/lodash/lodash/trunk/test

但是它在Colab中不起作用。我尝试安装svn:

!pip install tsvn

它返回错误:

错误:命令错误,退出状态为1:python setup.pyegg_info检查日志以获取完整的命令输出。

还有另一种从github下载文件夹的方法吗?

python github google-colaboratory
1个回答
0
投票

不使用pip,而是使用apt

!apt install subversion

然后您可以正常结帐

!svn checkout https://github.com/lodash/lodash/trunk/test
© www.soinside.com 2019 - 2024. All rights reserved.