question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove `--find-links` in `pip freeze`

See original GitHub issue

What’s the problem this feature will solve?

pip freeze --find-links=somewhere will simply output -f somewhere at the beginning of the output: https://github.com/pypa/pip/blob/8ae1bd607e9fa84d6640909dc9998a0c61a10da6/src/pip/_internal/operations/freeze.py#L59-L62

Except for history (this option exists since the freeze command and https://github.com/pypa/pip/commit/3d32c196b53bedf28860df4f29d0ed5bc8bec245), there is no reason to special case it and not allow --index-url, --pre and all the other options allowed in a requirements file.

Describe the solution you’d like

Deprecate and remove it.

Alternative Solutions

Keep it.

Additional context

Deprecating it would ease the transition for #7157

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
jaap3commented, Nov 4, 2020

No worries, the -f line in the pip freeze output has slightly bothered me for a while so I’m glad it’s going away 😃

1reaction
xavfernandezcommented, Jul 13, 2021

I’ll work on it, thanks for the reminder.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip freeze - pip documentation v21.1.dev0
Use the order in the given requirements file and its comments when generating output. This option can be used multiple times. -f ,...
Read more >
pip freeze creates some weird path instead of the package ...
I am working on developing a python package. I use pip freeze > requirements.txt to add the required package into the requirement.txt file....
Read more >
pip Documentation - Read the Docs
Fixed bug in Mercurial vcs backend related to pip freeze and branch/tag ... Track which build/ directories pip creates, never remove directories it...
Read more >
https://swarm.workshop.perforce.com/view/guest/esp...
Requirements files are used to hold the result from :ref:`pip freeze` for the ... (and not from PyPI): :: pip install --no-index --find-links=/local/wheels ......
Read more >
Pip — The complete reference guide | Nerd For Tech - Medium
pip <command> [options]Commands: install Install packages. download Download packages. uninstall Uninstall packages. freeze Output installed ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found