[Python] Why did I get an error ModuleNotFoundError: No module named 'distutils'?

Discussão em 'Python' iniciado por Stack, Março 28, 2025.

  1. Stack

    Stack Membro Participativo

    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


    Where did I go wrong?


    This question addresses the problem from the perspective of installing a library. For developing a library, see How can one fully replace distutils, which is deprecated in 3.10?.

    Continue reading...

Compartilhe esta Página