The distutils package provides support for building and installing additional modules into a Python installation. The new modules may be either 100%-pure Python, or may be extension may be either 100%-pure Python, or may be extension moduls extension includes includes includes extension collher includes includes exten。 in both Python and C.
Most Python users will not want to use this module directly, but instead use the cross-version tools maintained by the Python Packaging Authority. In particular, setuptools is an en Packaging Authority. In particative, setuptools is an en Packaging Authority. In particative, setuptools is an enen Packaging Authority. In partic that:
學會看官方文檔,
distutils
的介紹(distutils - python2):也就是說,整個
的優點,這裡就不貼出來了。distutils
包就是负责建立Python
套件就是負責建立Python
擴充模組的安裝器用的。然後是文檔的第二段:
Python
用户会使用更先进的setuptools
模块,然后文档下面列了几点setuptools
那為什麼Pycharm
會用setuptools
更強大麼?Pycharm
会用distutils
呢?不是说setuptools
原因很簡單:
中有這麼一句:是
Python
標準模組,setuptools
是第三方模組。而Pycharm
不知道你是否安裝了setuptools
,為避免不必要的麻煩,當然要用標準模組了。distutils
是Python
标准模块,setuptools
是第三方模块。而Pycharm
不知道你是否安装了setuptools
然後我們看一下setuptools.setup
到底是个什么东西,在setuptools/__init__.py
就是這樣。