How To Install python3-textdistance on Fedora 36

In this tutorial we learn how to install python3-textdistance in Fedora 36. python3-textdistance is Compute distance between the two texts

Introduction

In this tutorial we learn how to install python3-textdistance on Fedora 36.

What is python3-textdistance

TextDistance - python library for comparing distance between two or more sequences by many algorithms. Features - 30+ algorithms - Pure python implementation - Simple usage - More than two sequences comparing - Some algorithms have more than one implementation in one class. - Optional numpy usage for maximum speed.

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

Install python3-textdistance on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python3-textdistance

Install python3-textdistance on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python3-textdistance

How To Uninstall python3-textdistance on Fedora 36

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

sudo dnf remove python3-textdistance

python3-textdistance Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/textdistance
/usr/lib/python3.10/site-packages/textdistance-4.2.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/textdistance-4.2.0-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/textdistance-4.2.0-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/textdistance-4.2.0-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/textdistance-4.2.0-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/textdistance-4.2.0-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/textdistance/__init__.py
/usr/lib/python3.10/site-packages/textdistance/__pycache__
/usr/lib/python3.10/site-packages/textdistance/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/textdistance/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/textdistance/__pycache__/benchmark.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/textdistance/__pycache__/benchmark.cpython-310.pyc
/usr/lib/python3.10/site-packages/textdistance/__pycache__/libraries.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/textdistance/__pycache__/libraries.cpython-310.pyc
/usr/lib/python3.10/site-packages/textdistance/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/textdistance/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms
/usr/lib/python3.10/site-packages/textdistance/algorithms/__init__.py
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/base.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/base.cpython-310.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/compression_based.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/compression_based.cpython-310.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/edit_based.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/edit_based.cpython-310.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/phonetic.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/phonetic.cpython-310.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/sequence_based.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/sequence_based.cpython-310.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/simple.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/simple.cpython-310.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/token_based.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/token_based.cpython-310.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/vector_based.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/__pycache__/vector_based.cpython-310.pyc
/usr/lib/python3.10/site-packages/textdistance/algorithms/base.py
/usr/lib/python3.10/site-packages/textdistance/algorithms/compression_based.py
/usr/lib/python3.10/site-packages/textdistance/algorithms/edit_based.py
/usr/lib/python3.10/site-packages/textdistance/algorithms/phonetic.py
/usr/lib/python3.10/site-packages/textdistance/algorithms/sequence_based.py
/usr/lib/python3.10/site-packages/textdistance/algorithms/simple.py
/usr/lib/python3.10/site-packages/textdistance/algorithms/token_based.py
/usr/lib/python3.10/site-packages/textdistance/algorithms/vector_based.py
/usr/lib/python3.10/site-packages/textdistance/benchmark.py
/usr/lib/python3.10/site-packages/textdistance/libraries.json
/usr/lib/python3.10/site-packages/textdistance/libraries.py
/usr/lib/python3.10/site-packages/textdistance/utils.py
/usr/share/doc/python3-textdistance
/usr/share/doc/python3-textdistance/README.md
/usr/share/licenses/python3-textdistance
/usr/share/licenses/python3-textdistance/LICENSE

References

Summary

In this tutorial we learn how to install python3-textdistance on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).