How To Install python3 on Fedora 34

python3 is Python 3.9 interpreter Python 3.9 interpreter

Introduction

In this tutorial we learn how to install python3 on Fedora 34.

What is python3

Python 3.9 is an accessible, high-level, dynamically typed, interpreted programming language, designed with an emphasis on code readability. It includes an extensive standard library, and has a vast ecosystem of third-party libraries. The python3 package provides the “python3” executable interpreter for the Python language, version 3. The majority of its standard library is provided in the python3-libs package, which should be installed automatically along with python3. The remaining parts of the Python standard library are broken out into the python3-tkinter and python3-test packages, which may need to be installed separately. Documentation for Python is provided in the python3-docs package. Packages containing additional libraries for Python are generally named with the “python3-” prefix. python3 3.9.6 2.fc34 i686 28 k python3.9-3.9.6-2.fc34.src.rpm updates Python 3.9 interpreter https Python Python 3.9 is an accessible, high-level, dynamically typed, interpreted programming language, designed with an emphasis on code readability. It includes an extensive standard library, and has a vast ecosystem of third-party libraries. The python3 package provides the “python3” executable interpreter for the Python language, version 3. The majority of its standard library is provided in the python3-libs package, which should be installed automatically along with python3. The remaining parts of the Python standard library are broken out into the python3-tkinter and python3-test packages, which may need to be installed separately. Documentation for Python is provided in the python3-docs package. Packages containing additional libraries for Python are generally named with the “python3-” prefix.

We can use yum or dnf to install python3 on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install python3.

Install python3 on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install python3 using dnf by running the following command:

sudo dnf -y install python3

Install python3 on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install python3 using yum by running the following command:

sudo yum -y install python3

How To Uninstall python3 on Fedora 34

To uninstall only the python3 package we can use the following command:

sudo dnf remove python3

python3 Package Contents on Fedora 34

/usr/bin/pydoc
/usr/bin/pydoc3
/usr/bin/pydoc3.9
/usr/bin/python3
/usr/bin/python3.9
/usr/lib/.build-id
/usr/lib/.build-id/32
/usr/lib/.build-id/32/50d97c165407e0c48dbad561fc1f15d3e85895
/usr/share/doc/python3
/usr/share/doc/python3/README.rst
/usr/share/man/man1/python3.1.gz
/usr/share/man/man1/python3.9.1.gz
/usr/bin/pydoc
/usr/bin/pydoc3
/usr/bin/pydoc3.9
/usr/bin/python3
/usr/bin/python3.9
/usr/lib/.build-id
/usr/lib/.build-id/40
/usr/lib/.build-id/40/594ead928e477a73eb45f9b0503d7342659f39
/usr/share/doc/python3
/usr/share/doc/python3/README.rst
/usr/share/man/man1/python3.1.gz
/usr/share/man/man1/python3.9.1.gz
/usr/bin/pydoc
/usr/bin/pydoc3
/usr/bin/pydoc3.9
/usr/bin/python3
/usr/bin/python3.9
/usr/lib/.build-id
/usr/lib/.build-id/87
/usr/lib/.build-id/87/9115067c1aecdfe8fa997e996e0632dfeb9002
/usr/share/doc/python3
/usr/share/doc/python3/README.rst
/usr/share/man/man1/python3.1.gz
/usr/share/man/man1/python3.9.1.gz
/usr/bin/pydoc
/usr/bin/pydoc3
/usr/bin/pydoc3.9
/usr/bin/python3
/usr/bin/python3.9
/usr/lib/.build-id
/usr/lib/.build-id/de
/usr/lib/.build-id/de/7547041eca56ad57f6e153944eec7aea772b26
/usr/share/doc/python3
/usr/share/doc/python3/README.rst
/usr/share/man/man1/python3.1.gz
/usr/share/man/man1/python3.9.1.gz

References

Summary

In this tutorial we learn how to install python3 on Fedora 34 using yum and dnf.