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.

Option in pip freeze operation to exclude version info??

See original GitHub issue
  • Pip version: Latest
  • Python version: 3.5.2, 3.6.0
  • Operating system: Android ( via Termux), Ubuntu, Arch Linix, Fedora,

Please add a option in pip freeze to prevent adding of Version info

When running pip freeze the default output shows all the package names along with the current installed version. Please add a flag like –no-version so that the generated requirements file doesn’t have any version locks for any packages

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
pfmoorecommented, Mar 5, 2017

It’s pretty trivial to edit the generated file - On Unix, for example, pipe it through sed s/=.*//. What’s the use case here?

0reactions
lock[bot]commented, May 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ignore certain packages and their dependencies with pip freeze
Use pipfreezeignore > requirements.txt (in the same folder where ignore_requirements.txt is) so I just get in requirements.txt the installed ...
Read more >
pip freeze - pip documentation v22.3.1
Restrict to the specified installation path for listing packages (can be used multiple times). Exclude editable package from output.
Read more >
conda install
Conda attempts to install the newest versions of the requested packages. ... To prevent existing packages from updating, use the --freeze-installed option.
Read more >
pip install — pip 10.0.0.dev0 documentation
The pip freeze subcommand will record the VCS requirement specifier (referencing a specific commit) if and only if the install is done using...
Read more >
Pipenv: A Guide to the New Python Packaging Tool
The typical solution to this problem is to use pip freeze . This command allows you to get exact versions for all 3rd...
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