简体   繁体   中英

Can I use pip to install project from git with its dependency?

So I have a package that have a set of dependencies which I list in requirements.txt. Some of this dependencies (our projects in git) have dependencies also listed in requirements.txt also.

Will pip install dependencies recursively somehow?

As long as the package specifies what its requirements are in the setup.py file (see the setuptools documentation for details) then yes, it should install the dependencies recursively.

See Requirements Specifiers in the pip documentation.

pip supports installing from “requirement specifiers” as implemented in pkg_resources Requirements

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