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
When i use packaging.version.parse it will raise warning
/hdd/work/envs/main/lib/python3.10/site-packages/packaging/version.py:111: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
For resolve it, i trited distutils.version.StrictVersion and get
DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
on this pep alternative of this - use packaging.version
How to resolve this logical loop?
The text was updated successfully, but these errors were encountered:
As far as I can tell, the suggestion is to use packaging.version.Version rather than packaging.version.LegacyVersion, not anything from distutils. packaging is not part of the standard library anyway; any issues with it should be raised on its own issue tracker. See especially the pinned issue on that tracker.
Documentation
When i use packaging.version.parse it will raise warning
/hdd/work/envs/main/lib/python3.10/site-packages/packaging/version.py:111: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
For resolve it, i trited distutils.version.StrictVersion and get
DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
on this pep alternative of this - use packaging.version
How to resolve this logical loop?
The text was updated successfully, but these errors were encountered: