How To Install python3-pyfim on Fedora 36
Introduction
In this tutorial we learn how to install python3-pyfim
on Fedora 36.
What is python3-pyfim
PyFIM is an extension module that makes several frequent item set mining implementations available as functions in Python 2.7.x & 3.5.x. Currently apriori, eclat, fpgrowth, sam, relim, carpenter, ista, accretion and apriacc are available as functions, although the interfaces do not offer all of the options of the command line program. (Note that lcm is available as an algorithm mode of eclat.) There is also a “generic” function fim, which is essentially the same function as fpgrowth, only with a simplified interface (fewer options). Finally, there is a function arules for generating association rules (simplified interface compared to apriori, eclat and fpgrowth, which can also be used to generate association rules. How to use the functions can be seen in the example scripts testfim.py and testacc.py in the source package (directory pyfim/ex). From a Python script or command prompt interface, call help(fim), help(apriori) (or help(fim.apriori)), help(eclat) (or help(fim.eclat)) etc. or print, for example, apriori.doc, eclat.doc etc. for a description of the functions and their arguments. This extension module was originally developed for Python 2.7. The shared objects made available above were compiled particularly for Python 2.7.11 and Python 3.5.1 on Ubuntu 16.04 LTS and the dynamic modules made available above were compiled for Python 2.7.10 and Python 3.5.1 on Windows 10.
We can use yum
or dnf
to install python3-pyfim
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-pyfim.
Install python3-pyfim 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-pyfim
using dnf
by running the following command:
sudo dnf -y install python3-pyfim
Install python3-pyfim 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-pyfim
using yum
by running the following command:
sudo yum -y install python3-pyfim
How To Uninstall python3-pyfim on Fedora 36
To uninstall only the python3-pyfim
package we can use the following command:
sudo dnf remove python3-pyfim
python3-pyfim Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/a7c1cdb58baf22b399fc55cfaecbb01b5de219
/usr/lib64/python3.10/site-packages/fim-6.28-py3.10.egg-info
/usr/lib64/python3.10/site-packages/fim.cpython-310-x86_64-linux-gnu.so
/usr/share/licenses/python3-pyfim
/usr/share/licenses/python3-pyfim/mit-license.txt
References
Summary
In this tutorial we learn how to install python3-pyfim
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).