You need Python 3+ or later to run the algorithms. You can have multiple Python versions (2.x and 3.x) installed on the same system without problems.
In Ubuntu, Mint and Debian you can install Python 3 like this:
$ sudo apt-get install python3 python3-pip
For other Linux flavors, OS X and Windows, packages are available at
For the individual algorithms , specific prerequisites and various modules to be installed are mentioned below:
pip install sklearn csv re math numpy pandas string operator time tqdm
pip install __future__ csv re langdetect collections random
pip install sklearn csv re math numpy pandas tensorflow keras
pip install nltk re numpy string csv