Home  >  Q&A  >  body text

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

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

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

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

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

大家讲道理大家讲道理2742 days ago1046

reply all(4)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 11:57:53

    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.

    reply
    0
  • 阿神

    阿神2017-04-17 11:57:53

    Things like pip

    reply
    0
  • 伊谢尔伦

    伊谢尔伦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

    reply
    0
  • 高洛峰

    高洛峰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.

    reply
    0
  • Cancelreply