用 Python 编写的软件是如何安装到 Linux 系统中的?
用 C 或 C++ 编写的软件可以通过使用 make install 来安装的系统之中。用 Python 写的软件又该如何安装?
==========================
更新:特别是我自己编写的软件如何安装?
PHP中文网2017-04-17 11:57:53
There are generally three types:
They require sudo most of the time. Among them, setup.py can be written by looking for documentation. As far as I know, setup.py is generally not machine-generated... If the software is uploaded to pypi, pip will do.
伊谢尔伦2017-04-17 11:57:53
make install because there is a Makefile
The similar one in the python package is called setup.py. To install the python package, use:
$ python setup.py install
Generally, it will be installed under the system-level site-packages. If the permissions are insufficient, add sudo
in front of it高洛峰2017-04-17 11:57:53
There is a commercial software for perl script called perl2exe, py2exe for python on windows, and pyinstaller for linux.