url中有一个python包就像这样
https://github.com/my_profile/repo/tree/not_master_branch/folder_1/package
我知道通过pip安装一个包,它是:
pip install git+https://github.com/user/repo.git@branch
但是我怎么指定文件夹呢?
python -m pip install 'git+https://github.com/user/repo.git@branch#subdirectory=folder_1/package'
参考:
- https://pip.pypa.io/en/stable/reference/pip_install/?突出=子目录# vcs-support