17 C
Texas
angeloma
Senior Writer and partner

How to install PIP on Fedora 34?

Hello, friends. We are giving good support to Fedora 34. That’s why today we will show you how to install PIP on Fedora 34 and get it ready for you to use comfortably.

What is PIP?

Pip is a package manager for Python projects. Thanks to it we will be able to install many libraries, programs, and tools simply as if it were a system package.

But the most interesting utility of PIP is that by creating a Python virtual environment, we can use it to install programs in the path of the project without affecting other projects or the system itself.

The operation is similar to that of a package manager like APT, DNF, or Zypper because we can install, uninstall and update Python packages from the PIP repositories.

- Advertisement -

So, let’s install it and get it ready for you to use without any problems.

Install Pip on Fedora 34

The installation will be done using the terminal. So, open a new session from the main menu. When you have opened the terminal, you can update the distribution by running

sudo dnf update

Then, you can perform a search in the Fedora repositories.

sudo dnf search pip
1.- Searching for PIP on Fedora 34
1.- Searching for PIP on Fedora 34

And you will get a wide range of output per screen, but the best results are in the following one:

In this case, the package is python3-pip which we will have to install using DNF

sudo dnf install python3-pip

This will start the installation which should not take too long.

In the end, you can check the installed version

pip3 --version

Sample Output

pip 21.0.1 from /usr/lib/python3.9/site-packages/pip (python 3.9)

Although PIP is ready to use, you should always work with the latest version available. So, using it we can upgrade to the latest version.

So, to update PIP, run the following command:

sudo -H pip3 install -U pip
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Requirement already satisfied: pip in /usr/lib/python3.9/site-packages (21.0.1)
Collecting pip
  Downloading pip-21.1.2-py3-none-any.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 7.4 MB/s 
Installing collected packages: pip
Successfully installed pip-21.1.2

This way, we will have the latest version of PIP.

pip3 --version
pip 21.1.2 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)

Now yes, PIP is ready for battle.

Conclusion

PIP is a useful and basic tool in daily work with Python. So installing it should be a must for almost any programmer and sysadmin. As you may have noticed, the process is quite simple and anyone can complete it without any problem.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article