Home > Article > Backend Development > How to download the library in pycharm terminal
Steps to download the library in PyCharm: Open a terminal and use the pip command to install the library. Wait for the installation to complete and confirm using the pip list command. Import installed libraries in a Python script.
How to use the terminal to download the library in PyCharm
It is very convenient to use the terminal to download the library in PyCharm. The steps are as follows :
1. Open Terminal
2. Use pip to install the library
Enter the following command in the terminal:
<code>pip install <库名称></code>
For example, to install the NumPy library, please Enter:
<code>pip install numpy</code>
3. Wait for the installation to complete
The installation process may take a few minutes, depending on the size of the library and network speed.
4. Confirm installation
To confirm whether the library is installed, enter in the terminal:
<code>pip list</code>
This command will display all installed List of libraries, including newly installed libraries.
5. Import libraries
In your Python script, you can import the newly installed library:
<code class="python">import <库名称></code>
For example:
<code class="python">import numpy</code>
Other Tips:
The above is the detailed content of How to download the library in pycharm terminal. For more information, please follow other related articles on the PHP Chinese website!