[英]Download a single folder or directory from a GitHub repo to Colab
svn checkout https://github.com/lodash/lodash/trunk/test
But it doesn't work in Colab.但它在 Colab 中不起作用。 I tried to install svn:
我尝试安装 svn:
!pip install tsvn
It returns an error:它返回一个错误:
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整的命令输出。
Is there another way to download a folder from github?还有另一种方法可以从github下载文件夹吗?
Don't use pip
, use apt
instead不要使用
pip
,而是使用apt
!apt install subversion
Then you can checkout normally然后就可以正常结账了
!svn checkout https://github.com/lodash/lodash/trunk/test
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.