In this short Python tutorial, learn how to install Python packages with pip install in Windows. The word package is used as a synonym for distribution. Distribution is defined as a bundle of software to be installed. However, this does not to refer to a package that you would import in your source code. It’s preferred to reference package and not distribution in conversation.
Launch Command Prompt
To install the Python packages, we must first launch command prompt from your start menu. After launch Command Prompt, we must now find the scripts directory under your current Python version directory as shown below.
Install Packages Using ‘pip install’ Command
The pip install command will be the same across all packages in Python. For this tutorial, we will be installing four packages: numpy, nltk, sklearn, and speech.
NumPy Package
The NumPy package is a library build for the Python programming. This library adds functions such as high-level mathematical functions and multi-dimensional arrays and matrices.
pip install numpy
Natural Language Toolkit (NLTK) Package
The Natural Language Toolkit (NLTK) is a library used for Python programming. The library is built to help work in statistical natural language processing (NLP) with human language data to build Python program. The NLTK library contains text processing libraries for classification, parsing, stemming, semantic reasoning, tagging, and tokenization. In addition, the NLTK library provides sample data sets and graphical demonstrations.
pip install nltk
Scikit-learn (sklearn) Package
Scikit-learn (previously scikits.learn) is a Python programming library for machine learning. The sklearn package offers features for algorithms such as classification, clustering, and regression. In addition, it includes features gradient boosting, k-means, random forests, and support vector machines. Also, the sklearn package is designed to integrate with other machine learning and data science libraries such as NumPy and SciPy.
pip install sklearn
speech Package
The speech library is a package built for Python programming. The speech package provides speech recognition and text-to-speech capabilities.
pip install speech
I hope this Python tutorial helped with your success of installing Python packages on your Windows machine.