
You’ll need to replace package_name above with the name of the library or package you want to have installed.įor example, let’s install some mathematical packages. If at any time you want to install a Python package, you use the following command: pip3 install package_name Pip should take a minute or two to install.

Type the following command and press Enter: sudo apt install -y python3-pip The -y flag means that we agree to upgrade our system to the latest and greatest software packages. You’ll need to type your password and then press Enter.

Type the following command in the terminal window: sudo apt update Let’s also upgrade the system if necessary. Before we install anything, let’s make sure we have the latest list of available packages.
