Home >Backend Development >Python Tutorial >How to download third-party modules in python
Download third-party modules through the Python package manager pip: 1. Install pip, and then use pip install
to download a specific module; 2. Use pip show to verify the installation.
In Python, you can download and install third-party modules through the package manager pip.
1. Install pip
If you haven’t installed pip yet, please use the following command to install it:
<code>python -m ensurepip --upgrade</code>
2. Download modules using pip
To download a specific third-party module, use the following command:
<code>pip install <模块名称></code>
For example, to download the NumPy module, run:
<code>pip install numpy</code>
3. Verify installation
After the installation is complete, you can use the following command to verify whether the module has been installed:
<code>pip show <模块名称></code>
<code>pip list</code>
The above is the detailed content of How to download third-party modules in python. For more information, please follow other related articles on the PHP Chinese website!