setup.py
is a python file, which usually tells you that the module/package you are about to install has been packaged and distributed with Distutils, which is the standard for distributing Python Modules.
(setup.py
是一个python文件,通常告诉您要安装的模块/软件包已与Distutils打包并分发,Distutils是分发Python模块的标准。)
This allows you to easily install Python packages.
(这使您可以轻松安装Python软件包。)
Often it's enough to write: (通常写就足够了:)
$ pip install .
pip
will use setup.py to install your module.
(pip
将使用setup.py安装模块。)
Avoid calling setup.py
directly. (避免直接调用setup.py
。)
https://docs.python.org/3/installing/index.html#installing-index
(https://docs.python.org/3/installing/index.html#installing-index)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…