Skip to main content
 首页 » 编程设计

python之没有名为 distutils 的模块

2025年05月04日18Free-Thinker

我正在尝试分发我编写的 python 模块。出于某种原因,我找不到 disutils 模块。我在哪里可以找到它?

Python 2.7.3 (v2.7.3:70274d53c1dd, Apr  9 2012, 20:52:43)  
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import disutils 
Traceback (most recent call last): 
File "<stdin>", line 1, in <module> 
ImportError: No module named disutils 

请您参考如下方法:

该模块名为 distutils,而不是 disutils。