Home >Backend Development >Python Tutorial >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!