Home > Article > Backend Development > pip3 installation guide for Python3
A simple tutorial for installing pip3 with Python3
Python is an excellent programming language with a rich ecosystem and powerful libraries. In order to better use Python for development, we usually need to install some third-party libraries. And pip3 is Python's package management tool, which can easily install, upgrade and delete third-party libraries.
This article will introduce a simple tutorial for installing pip3 in Python3 to help readers easily obtain pip3 and better manage Python libraries. The following are the specific steps:
Step 1: Check the Python version
Before installing pip3, we first need to check the Python version. Open a terminal or command prompt and enter the following command:
python3 --version
If a result similar to Python 3.x.x
is displayed, you have installed Python3. If Python3 is not installed, please install Python3 first.
Step 2: Download the get-pip script
Enter the following command on the command line to download the get-pip.py script:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
Note: If you do not have curl installed , please install curl first.
Step 3: Install pip3
In a terminal or command prompt, use the following command to install pip3:
python3 get-pip.py
This command will run the get-pip.py script and Install pip3 into your Python environment.
Step 4: Verify whether pip3 installation is successful
In the terminal or command prompt, enter the following command to verify whether pip3 is successfully installed:
pip3 --version
If it displays something similar to # The result of ##pip 21.3.1 indicates that pip3 is installed successfully.
pip3 install <库名>
pip3 install numpy
pip3 install --upgrade <库名>
pip3 install --upgrade numpy
pip3 uninstall <库名>
pip3 uninstall numpyIn addition to the above basic usage methods, pip3 has more functions and options. You can view more detailed instructions by entering the
pip3 --help command.
The above is the detailed content of pip3 installation guide for Python3. For more information, please follow other related articles on the PHP Chinese website!