Home  >  Article  >  Backend Development  >  How to install modules in python through setup.py

How to install modules in python through setup.py

尚
Original
2019-07-05 14:07:487239browse

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:

How to install modules in python through setup.py

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!

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