What does python setup.py install mean?

藏色散人
Release: 2019-06-25 10:06:57
Original
11989 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
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!