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 strict versioning from requirements.txt

See original GitHub issue

Hi,

I noticed I’m unable to add this library to my project via pipenv due to ‘incompatible versions in the resolved dependencies’ pipenv error. This happens because some library vendors sticks to strict versions in their requirements.txt file like this:

requests==2.20.0
requests-oauthlib==1.0.0

Therefore if one library needs requests==2.20.0 while another library needs requests==2.12.4 then pipenv would be unable to satisfy those conditions.

Could we have a more relaxed versions specification, like the next example?

requests>=2.12.4
requests-oauthlib>=1.0.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
janscascommented, Nov 13, 2018

Sure we can do that. Let me check each one of the dependencies and what versions can we set as the minimum required.

0reactions
SergeySerjcommented, Nov 16, 2018

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove strict versioning from requirements.txt #53 - GitHub
Hi,. I noticed I'm unable to add this library to my project via pipenv due to 'incompatible versions in the resolved dependencies' pipenv...
Read more >
Does Python requirements file have to specify version?
No, there is no need to specify a version. It's probably a good idea to specify one, though.
Read more >
Python package dependency management - pip freeze
Run pip freeze > constraints.txt; Add the new file to version control. Remove the constraints from the requirements.txt file.
Read more >
Should You Use Upper Bound Version Constraints?
Bound version constraints (upper caps) are starting to show up in the Python ecosystem. This is causing real world problems with libraries ...
Read more >
Dependency Resolution - pip documentation v22.3.1
As a first step, it is useful to audit your project and remove any unnecessary or out of date requirements (e.g. from your...
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