Skip to content

ModuleNotFoundError: No module named 'distutils.msvccompiler' #125836

@tr1ppyb0y

Description

@tr1ppyb0y

Bug report

Bug description:

It is regarding this error when installing, pip install pylzma

image

Same error occurs when I am running these commands in python shell, from distutils import msvccompiler or from distutils.msvccompiler import MSVCCompiler

Although, when I tried to import the MSVCCompiler in python shell with this command, from distutils._msvccompiler import MSVCCompiler it imported just fine. Please see the screenshot below.
image

I think it's just file naming issue, but please correct me if I am wrong.
image

Please help.

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions