Bug summary
distutils is deprecated in Python 3.10: https://docs.python.org/3/library/distutils.html
Matplotlib (as of 3.4.3) currently uses distutils, so users are met with DeprecationWarnings when using on Python 3.10.
from matplotlib import pyplot
.tox/py/lib/python3.10/site-packages/matplotlib/__init__.py:88: in <module>
from distutils.version import LooseVersion
/usr/local/lib/python3.10/distutils/__init__.py:19: in <module>
warnings.warn(_DEPRECATION_MESSAGE,
E DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
Code for reproduction
from matplotlib import pyplot
Actual outcome
DeprecationWarning raised per summary.
Expected outcome
No DeprecationWarnings raised
Additional information
No response
Operating system
macOS
Matplotlib Version
3.4.3
Matplotlib Backend
No response
Python version
Python 3.10.0
Jupyter version
No response
Installation
pip
Bug summary
distutils is deprecated in Python 3.10: https://docs.python.org/3/library/distutils.html
Matplotlib (as of 3.4.3) currently uses
distutils, so users are met withDeprecationWarnings when using on Python 3.10.Code for reproduction
Actual outcome
DeprecationWarningraised per summary.Expected outcome
No
DeprecationWarnings raisedAdditional information
No response
Operating system
macOS
Matplotlib Version
3.4.3
Matplotlib Backend
No response
Python version
Python 3.10.0
Jupyter version
No response
Installation
pip