Equivalent of `package.json' and `package-lock.json` for `pip`
问题 Package managers for JavaScript like npm and yarn use a package.json to specify 'top-level' dependencies, and create a lock-file to keep track of the specific versions of all packages (i.e. top-level and sub-level dependencies) that are installed as a result. In addition, the package.json allows us to make a distinction between types of top-level dependencies, such as production and development . For Python , on the other hand, we have pip . I suppose the pip equivalent of a lock -file would