用 Python 编写的软件是如何安装到 Linux 系统中的
大家讲道理
大家讲道理 2017-04-17 11:55:53
0
4
1047

用 Python 编写的软件是如何安装到 Linux 系统中的?

用 C 或 C++ 编写的软件可以通过使用 make install 来安装的系统之中。用 Python 写的软件又该如何安装?

==========================

更新:特别是我自己编写的软件如何安装?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(4)
Ty80

There are generally three types:

  1. python setup.py install
  2. pip install xxx
  3. easy_install xxx

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

in front of it
小葫芦

There is a commercial software for perl script called perl2exe, py2exe for python on windows, and pyinstaller for linux.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!