欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

解决Python源码编译时提示:ModuleNotFoundError: No module named ‘distutils.command‘

程序员文章站 2023-11-17 20:03:10
源码编译 python 时报错:python3 setup.py installTraceback (most recent call last): File "setup.py", line 12, in from distutils.command.build_scripts import build_scripts as BuildScriptsModuleNotFoundError: No module named 'distutils.comman...

源码编译 python 时报错:

python3 setup.py install

Traceback (most recent call last):
  File "setup.py", line 12, in <module>
    from distutils.command.build_scripts import build_scripts as BuildScripts
ModuleNotFoundError: No module named 'distutils.command'

根据上面的报错,可以大致看出应该是 distutils 的问题

在其它正常的系统中,distutils 位于 /usr/lib/py

本文地址:https://blog.csdn.net/weixin_38645718/article/details/107079956