
- Gensim Tutorial
- Gensim - Home
- Gensim - Introduction
- Gensim - Getting Started
- Gensim - Documents & Corpus
- Gensim - Vector & Model
- Gensim - Creating a Dictionary
- Creating a bag of words (BoW) Corpus
- Gensim - Transformations
- Gensim - Creating TF-IDF Matrix
- Gensim - Topic Modeling
- Gensim - Creating LDA Topic Model
- Gensim - Using LDA Topic Model
- Gensim - Creating LDA Mallet Model
- Gensim - Documents & LDA Model
- Gensim - Creating LSI & HDP Topic Model
- Gensim - Developing Word Embedding
- Gensim - Doc2Vec Model
- Gensim Useful Resources
- Gensim - Quick Guide
- Gensim - Useful Resources
- Gensim - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Gensim - Getting Started
The chapter enlightens about the prerequisites for installing Gensim, its core dependencies and information about its current version.
Prerequisites
In order to install Gensim, we must have Python installed on our computers. You can go to the link www.python.org/downloads/ and select the latest version for your OS i.e. Windows and Linux/Unix. You can refer to the link www.tutorialspoint.com/python3/index.htm for basic tutorial on Python. Gensim is supported for Linux, Windows and Mac OS X.

Code Dependencies
Gensim should run on any platform that supports Python 2.7 or 3.5+ and NumPy. It actually depends on the following software −
Python
Gensim is tested with Python versions 2.7, 3.5, 3.6, and 3.7.
Numpy
As we know that, NumPy is a package for scientific computing with Python. It can also be used as an efficient multi-dimensional container of generic data. Gensim depends on NumPy package for number crunching. For basic tutorial on Python, you can refer to the link www.tutorialspoint.com/numpy/index.htm.
smart_open
smart_open, a Python 2 & Python 3 library, is used for efficient streaming of very large files. It supports streaming from/to storages such as S3, HDFS, WebHDFS, HTTP, HTTPS, SFTP, or local filesystems. Gensim depends upon smart_open Python library for transparently opening files on remote storage as well as compressed files.
Current Version
The current version of Gensim is 3.8.0 which was released in July 2019.
Installing Using Terminal
One of the simplest ways to install Gensim, is to run the following command in your terminal −
pip install --upgrade gensim
Installing Using Conda Environment
An alternative way to download Gensim is, to use conda environment. Run the following command in your conda terminal −
conda install –c conda-forge gensim

Installing Using Source Package
Suppose, if you have downloaded and unzipped the source package, then you need to run the following commands −
python setup.py test python setup.py install