Home  >  Article  >  Backend Development  >  What does python setup.py install mean?

What does python setup.py install mean?

藏色散人
藏色散人Original
2019-06-25 10:06:5711990browse

What does python setup.py install mean?

What does python setup.py install mean?

python setup.py install is a common command we use to install downloaded python packages or extension packages developed by ourselves in accordance with python official specifications.

With this command, the python package will be installed on the system or in the python library of the user you specify (this operation is described in the official documentation: module distribution.: http://structure.usc.edu/python/inst /standard-install.htm)

python setup.py install includes two steps:

python setup.py build, python setup.py install. These two steps can be executed separately, or Only execute python setup.py install, because python setup.py install always builds first and then installs.

python setup.py build is the process of python compiling this module. This process is more complicated, and finally a build will be generated. folder. The install process after removing the build process is to copy the build/lib file to the user-specified lib library.

Here is an example of installing a customized mock-server developed by a colleague into the system python library for testing.

Initial conditions:

python-devel, gcc have been installed, and the mock-server source code package has been downloaded and decompressed.

python setup.py install is a common command we use to install downloaded python packages or extension packages developed by ourselves in accordance with python official specifications.

With this command, the python package will be installed on the system or in the python library of the user you specify (this operation is described in the official documentation: module distribution.: http://structure.usc.edu/python/inst /standard-install.htm)

python setup.py install includes two steps:

python setup.py build, python setup.py install. These two steps can be executed separately, or Only execute python setup.py install, because python setup.py install always builds first and then installs.

python setup.py build is the process of python compiling this module. This process is more complicated, and finally a build will be generated. folder. The install process after removing the build process is to copy the build/lib file to the user-specified lib library.

Related recommendations: "Python Tutorial"

The above is the detailed content of What does python setup.py install mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn