You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The workaround is to manually install a later version of networkx and ignore pip warnings, but ideally version requirements should be relaxed to somthing like networkx>=2.3
The text was updated successfully, but these errors were encountered:
As of python 3.9, fractions.gcd(a, b) method has been removed and replaced by math.gcd(*integers). networkx==2.3 still uses fractions.gcd(a, b) and as such will throw an "ImportError: cannot import name 'gcd' from 'fractions'" error at runtime
https://stackoverflow.com/questions/66174862/import-error-cant-import-name-gcd-from-fractions
The workaround is to manually install a later version of networkx and ignore pip warnings, but ideally version requirements should be relaxed to somthing like networkx>=2.3
The text was updated successfully, but these errors were encountered: