Home > Article > Backend Development > How to install modules in python through setup.py
Sometimes we find that some modules do not provide the pip install command and installation tutorial, but only provide a setup.py file. How to install it at this time?
1. Open cmd and use the cd command to reach the installation directory
2. Enter the command python setup.py build
on the command line. 3. Enter the command python setup.py install
on the command line. The specific steps are as follows:
For more Python-related technical articles, please visit the Python Tutorial column to learn!
The above is the detailed content of How to install modules in python through setup.py. For more information, please follow other related articles on the PHP Chinese website!