How to install Python on Fedora 43

Cover Image

Getting Started with Python on Fedora 43: A Quick Guide

Hey fellow coders! Fedora 43 is a fantastic Linux distribution, and if you're like me, one of the first things you'll want to do is get Python up and running. Luckily, it's super easy! Let's walk through the installation process together.

Checking if Python is Already Installed

Before we jump into installing, let's quickly check if Python is already present. Fedora often comes with Python pre-installed. Open your terminal and type:

python3 --version

If you see a version number (like Python 3.12.x), then great! Python is already installed. You might want to update it to the latest version later, but for now, you can skip the installation steps.

Installing Python 3 on Fedora 43

If the command above returns an error, or if you want to make sure you have the newest version, follow these steps:

  1. Open your terminal. You can usually find it in your application menu or by pressing Ctrl+Alt+T.
  2. Update your package manager. This ensures you're getting the latest information about available packages:
  3. sudo dnf update
  4. Install Python 3. Use the following command:
  5. sudo dnf install python3
  6. Confirm the installation. When prompted, type 'y' and press Enter to confirm the installation.
  7. Verify the installation. Once the installation is complete, run the version check again:
  8. python3 --version

You should now see the Python 3 version number displayed in your terminal. Congratulations, you've successfully installed Python 3 on Fedora 43!

Installing pip (Package Installer for Python)

pip is a package manager for Python. It allows you to easily install and manage third-party libraries and modules. It's essential for most Python projects. To install pip, use the following command:

sudo dnf install python3-pip

Once installed, you can verify it with:

pip3 --version

Essential Python Packages

Now that you have Python and pip installed, here are a few essential packages that you might find helpful:

  • NumPy: For numerical computation. Install with: pip3 install numpy
  • Pandas: For data analysis. Install with: pip3 install pandas
  • Requests: For making HTTP requests. Install with: pip3 install requests

And there you have it! You're now ready to start coding with Python on Fedora 43. Have fun building awesome projects!