given that I have a 'requirements.txt' file, how to check if any of the libraries included there is not compatible with the latest python version I want to migrate to? anyway of knowing without reading one by one each library's docs?
Asked
Active
Viewed 23 times
-1
-
Simply (attempting) installing them will let you know whether they are compatible. – MisterMiyagi Aug 26 '23 at 19:55
-
@MisterMiyagi But installation should be tried [one by one](https://stackoverflow.com/a/21311174/7976758). `pip install -r requirements.txt` just stops on the 1st error. – phd Aug 26 '23 at 19:57
-
@phd which tells you if *any* of the libraries included there is not compatible… (Since indirect dependencies may introduce conflicts as well, I’d argue that partial installation of primary dependencies is not exact to find all incompatible dependencies either.) – MisterMiyagi Aug 26 '23 at 20:00
-
Successfully installing dependencies does not mean the dependencies are compatible with the Python interpreter. A test suite must be run. – sinoroc Aug 26 '23 at 20:55