Pip 从另一个分支上的github子目录安装python包

Pip 从另一个分支上的github子目录安装python包,pip,Pip,我在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@branc

我在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'
参考

参考


@txgoogle这能回答你的问题吗?需要澄清吗?@txgoogle这能回答你的问题吗?需要澄清吗?