Home  >  Article  >  Backend Development  >  How to install python compressed package

How to install python compressed package

(*-*)浩
(*-*)浩Original
2019-07-01 11:33:1821034browse

We know that a very important reason why Python is very popular is because it has many packages for us to use, but many of these packages do not come with them and need to be installed manually.

How to install python compressed package

The packages we usually use are obtained from the website https://pypi.org/. Developers publish packages according to certain development standards. to Pypi, and then the user who uses the package downloads and installs the package from the website in different ways. (Recommended learning: Python video tutorial)

Python packages mainly come in two formats: .whl and .tar.gz.

The tar.gz file needs to be downloaded by selecting the file in the corresponding format from https://pypi.org/. After downloading, it will be a compressed package.

You need to decompress it. After decompression, open the command window. You also need to switch to the path where the file is located, and then run the python setup.py install command to install it.

How to install python compressed packageIn fact, the methods used to install files in .whl and .tar.gz formats are basically the same, but the commands used are different.

For more Python related technical articles, please visit the Python Tutorial column to learn!

The above is the detailed content of How to install python compressed package. 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