用 Python 编写的软件是如何安装到 Linux 系统中的?
用 C 或 C++ 编写的软件可以通过使用 make install 来安装的系统之中。用 Python 写的软件又该如何安装?
==========================
更新:特别是我自己编写的软件如何安装?
光阴似箭催人老,日月如移越少年。
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.
Things like pip
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
There is a commercial software for perl script called perl2exe, py2exe for python on windows, and pyinstaller for linux.
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.
Things like pip
make install because there is a Makefile
The similar one in the python package is called setup.py. To install the python package, use:
Generally, it will be installed under the system-level site-packages. If the permissions are insufficient, add sudo
in front of itThere is a commercial software for perl script called perl2exe, py2exe for python on windows, and pyinstaller for linux.