Sathiamoorthy
Sathiamoorthy

Reputation: 11542

ModuleNotFoundError: No module named 'setuptools._distutils'

I am getting the exception when I am installing the below package in python.

pip install django_microsoft_auth

Exception

ModuleNotFoundError: No module named 'setuptools._distutils'

What is the problem here?

Upvotes: 3

Views: 9168

Answers (3)

Sathiamoorthy
Sathiamoorthy

Reputation: 11542

I have resolved it with the below option.

Linux

export SETUPTOOLS_USE_DISTUTILS=stdlib

Windows

set SETUPTOOLS_USE_DISTUTILS=stdlib

After that, I have executed the pip install command.

pip install django_microsoft_auth

This is the bug in setuptools. See ModuleNotFoundError: No module named 'setuptools._distutils' #2353.

Upvotes: 9

Drew
Drew

Reputation: 11

This is a bug in setuptools; see ModuleNotFoundError: No module named 'setuptools._distutils' #2353

Upvotes: 1

Sushrut Ashtikar
Sushrut Ashtikar

Reputation: 69

sudo apt-get install -y python3-distutils

Upvotes: 0

Related Questions