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.

Is there a way to output >= instead of == in requirements.txt?

See original GitHub issue

Is there a way to output >= instead of == in requirements.txt?

pygsheets>=1.1.3
retrying>=1.3.3

Instead of

pygsheets==1.1.3
retrying==1.3.3

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:8

github_iconTop GitHub Comments

4reactions
sirfogacommented, Oct 3, 2018

@philipperemy use sed:

pipreqs --force --print . | sed "s|==|>=|" > requirements.txt

will replace all == with >=:

mutagen>=1.41.1
requests>=2.18.4
scipy>=0.19.1
httplib2>=0.11.3
....
1reaction
Honghecommented, May 21, 2018

Or how to export without specific version number?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there any way to output requirements.txt automatically?
Try the following command: pip freeze > requirements.txt.
Read more >
Why and How to make a Requirements.txt - Robert Boscacci
Nope. In short, we generate and share requirements.txt files to make it easier for other developers to install the correct versions of the...
Read more >
The Python Requirements File and How to Create it
Use the pip install -r requirements.txt command to install all of the Python modules and packages listed in your requirements.txt file. This ...
Read more >
print output suitable for requirements.txt on successful install ...
It would be really nice if pip printed a line suitable for a requirements.txt file after installing. I am forever typing: pip install...
Read more >
How to Generate Requirements.txt for Your Python Project
A guide to generating Requirements.txt for Python project.
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