[英]ModuleNotFoundError: No module named 'setuptools._distutils'
I am getting the exception when I am installing the below package in python.当我在 python 中安装以下 package 时出现异常。
pip install django_microsoft_auth
Exception例外
ModuleNotFoundError: No module named 'setuptools._distutils'
What is the problem here?这里有什么问题?
I have resolved it with the below option.我已经使用以下选项解决了它。
Linux Linux
export SETUPTOOLS_USE_DISTUTILS=stdlib
Windows Windows
set SETUPTOOLS_USE_DISTUTILS=stdlib
After that, I have executed the pip install command.之后,我执行了 pip 安装命令。
pip install django_microsoft_auth
This is the bug in setuptools.这是 setuptools 中的错误。 See ModuleNotFoundError: No module named 'setuptools._distutils' #2353 .
请参阅ModuleNotFoundError:没有名为“setuptools._distutils”的模块#2353 。
This is a bug in setuptools;这是设置工具中的错误; see ModuleNotFoundError: No module named 'setuptools._distutils' #2353
请参阅ModuleNotFoundError:没有名为“setuptools._distutils”的模块#2353
sudo apt-get install -y python3-distutils
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.