简体   繁体   中英

Download a single folder or directory from a GitHub repo to Colab

This topic suggests:

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

But it doesn't work in Colab. I tried to install 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.

Is there another way to download a folder from github?

Don't use pip , use apt instead

!apt install subversion

Then you can checkout normally

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM