Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support --target installations with pip freeze #6404

lkollar opened this issue Apr 12, 2019 · 0 comments

Support --target installations with pip freeze #6404

lkollar opened this issue Apr 12, 2019 · 0 comments


Copy link

@lkollar lkollar commented Apr 12, 2019

What's the problem this feature will solve?

List all dependencies with pip freeze which have been installed into an arbitrary directory with pip install --target.

Describe the solution you'd like

pip freeze should have a --target option and take a path to an installation path to work out the installed dependencies in that directory. It should probably also honour the --local flag and skip globally installed packages if specified, just like with virtualenvs, or implicitly disable global site altogether.

I would like to install an application's dependencies into a target directory and then generate a requirements.txt based on the installed packages. At the moment I can only do this if I install the dependencies with --user, inside a virtualenv or by globally installing them.

Alternative Solutions

As far as I know there is no alternative solution to resolve the transitive dependencies and generate a requirements.txt based on a target installation directory.

Additional context

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants