I've installed scikit-fuzzy but when I import skfuzzy as fuzz I get an error
ModuleNotFoundError: No module named 'distutils'"
I already tried to pip uninstall distutils and got this output
Note: you may need to restart the kernel to use updated packages.
WARNING: Skipping distutils as it is not installed.
Then I tried to install it again pip install distutils
Note: you may need to restart the kernel to use updated packages.
ERROR: Could not find a version that satisfies the requirement distutils (from versions: none)
ERROR: No matching distribution found for distutils
Since I use Python 3.12 I also tried to use pip3 to install but it say invalid syntax.
Where did I go wrong?
Python 3.12 does not come with a stdlib distutils module (changelog), because
distutilswas deprecated in 3.10 and removed in 3.12. See PEP 632 – Deprecate distutils module.You can still use
distutilson Python 3.12+ by installingsetuptools.When that doesn't work, you may need stay on Python < 3.12 until the 3rd-party package (
skfuzzyin this case) publishes an updated release for Python 3.12 support.