SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
How to Install Numpy, Scipy,
Matplotlib, Pandas & Scikit-Learn
on Windows
Python comes loaded with powerful packages that make machine learning tasks easier. This is
why it is the language of choice among data scientists. Of the vast collection of libraries that you
can choose from, there are a set of basic libraries you should be familiar with as a beginner.

In this tutorial we are going to install these basic libraries on our system using Python’s built in
package manager PIP.

Numpy:
NumPy (stands for Numerical Python) provides useful features for operations on n-arrays and
matrices in Python. It provides vectorization of mathematical operations on the NumPy array type.

Installation:
1. In the terminal type the command pip install numpy
2. For security reasons, you will be asked to enter your password. 

3. Installation will take only a few seconds.

Numpy is now installed on your system.

Testing:
1. In the terminal, start Python by typing the command python
2. Use the following error handling block:

try:

import numpy

except ImportError:

print (“numpy is not installed”)

3. If numpy is installed successfully, then you will not get any message in the terminal.

Otherwise you will get an error message saying “numpy is not installed”.

Troubleshooting:
If you get the error message, try this command pip install -U numpy
Scipy:
SciPy contains modules for linear algebra, optimization, integration, and statistics. It is built upon
NumPy. It provides efficient numerical routines as numerical integration, optimization, and more
via specific submodules. 

Installation:
1. In the terminal type the command pip install scipy
2. For security reasons, you will be asked to enter your password. 

3. Installation will take only a few seconds.

Scipy is now installed on your system.

Testing:
1. In the terminal, start Python by typing the command python
2. Use the following error handling block:

try:

import scipy

except ImportError:

print (“scipy is not installed”)

3. If scipy is installed successfully, then you will not get any message in the terminal.

Otherwise you will get an error message saying “scipy is not installed”.

Troubleshooting:
If you get the error message, try this command pip install -U scipy
Matplotlib:
It is used for the generation of simple and powerful visualizations.

You can make just about any visualizations such as bar charts, histograms &

pie charts. There are facilities for creating labels, grids and other formatting elements.

Installation:
1. In the terminal type the command pip install matplotlib
2. For security reasons, you will be asked to enter your password. 

3. Installation will take only a few seconds.

Matplotlib is now installed on your system.

Testing:
1. In the terminal, start Python by typing the command python
2. Use the following error handling block:

try:

import matplotlib

except ImportError:

print (“matplotlib is not installed”)

3. If matplotlib is installed successfully, then you will not get any message in the terminal.

Otherwise you will get an error message saying “matplotlib is not installed”.

Troubleshooting:
If you get the error message, try this command pip install -U matplotlib
Pandas:
Pandas works with “labeled” and “relational” data. Pandas is primarily used for data wrangling. It
was designed for quick and easy data manipulation, aggregation, and visualization.

Installation:
1. In the terminal type the command pip install pandas
2. For security reasons, you will be asked to enter your password. 

3. Installation will take only a few seconds.

Pandas is now installed on your system.

Testing:
1. In the terminal, start Python by typing the command python
2. Use the following error handling block:

try:

import pandas

except ImportError:

print (“pandas is not installed”)

3. If pandas is installed successfully, then you will not get any message in the terminal.

Otherwise you will get an error message saying “pandas is not installed”.

Troubleshooting:
If you get the error message, try this command pip install -U pandas
Scikit-Learn:
This package is built on the top of SciPy and makes heavy use of its mathematical operations.

It provides access to common machine learning algorithms, making it simple to bring machine
learning into any project. It is easy to use and is great for playing around with machine learning
concepts.

Installation:
1. In the terminal type the command pip install scikit-learn
2. For security reasons, you will be asked to enter your password. 

3. Installation will take only a few seconds.

Scikit-Learn is now installed on your system.

Testing:
1. In the terminal, start Python by typing the command python
2. Use the following error handling block:

try:

import scikit-learn

except ImportError:

print (“scikit-learn is not installed”)
3. If scikit-learn is installed successfully, then you will not get any message in the terminal.

Otherwise you will get an error message saying “scikit-learn is not installed”.

Troubleshooting:
If you get the error message, try this command pip install -U scikit-learn
You are now armed with the basic tools that you need to begin your data science journey.

More Related Content

PPTX
File handling in Python
PPTX
0 1 knapsack using branch and bound
PDF
Ai lecture 7(unit02)
PPT
Python virtualenv & pip in 90 minutes
PPTX
Code Optimization
PPTX
Different types of Editors in Linux
PDF
Creating simple component
PDF
Python Spyder IDE | Edureka
File handling in Python
0 1 knapsack using branch and bound
Ai lecture 7(unit02)
Python virtualenv & pip in 90 minutes
Code Optimization
Different types of Editors in Linux
Creating simple component
Python Spyder IDE | Edureka

What's hot (20)

PPT
dynamic programming Rod cutting class
PPTX
Associative memory network
PPTX
Knapsack problem using greedy approach
PPTX
Functions in Python
DOC
Branch and bound
PPTX
File Handling Python
PPTX
Time space trade off
PPT
32 dynamic linking nd overlays
PPTX
DAA-Floyd Warshall Algorithm.pptx
PDF
P, NP, NP-Complete, and NP-Hard
PDF
Python File Handling | File Operations in Python | Learn python programming |...
PDF
Recurrence relation solutions
PDF
Syntax Directed Definition and its applications
PDF
Fake-Coin Problem
PPT
similarity measure
PPTX
Greedy Algorithm - Knapsack Problem
PPTX
Visible Surfacte Detection Methods - Z-Buffer and Scanline methods.pptx
PPT
Conceptual dependency
PPTX
Evaluating hypothesis
dynamic programming Rod cutting class
Associative memory network
Knapsack problem using greedy approach
Functions in Python
Branch and bound
File Handling Python
Time space trade off
32 dynamic linking nd overlays
DAA-Floyd Warshall Algorithm.pptx
P, NP, NP-Complete, and NP-Hard
Python File Handling | File Operations in Python | Learn python programming |...
Recurrence relation solutions
Syntax Directed Definition and its applications
Fake-Coin Problem
similarity measure
Greedy Algorithm - Knapsack Problem
Visible Surfacte Detection Methods - Z-Buffer and Scanline methods.pptx
Conceptual dependency
Evaluating hypothesis
Ad

Similar to How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Windows (20)

PDF
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Linux
PDF
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Mac
PPTX
Data Analysis packages
PPTX
Introduction to Machine Learning by MARK
PDF
DS LAB MANUAL.pdf
PDF
matplotlib fully explained in detail with examples
PPTX
Python for statistical analysis
PDF
Scientific Python
PDF
NumPy and SciPy for Data Mining and Data Analysis Including iPython, SciKits,...
PPT
PDF
Download full ebook of Mastering Pandas Femi Anthony instant download pdf
PPTX
Introduction to Pylab and Matploitlib.
PDF
Mastering pandas 1st Edition Femi Anthony
PPTX
Scipy Libraries to Work with Various Datasets.pptx
PDF
Python for Data Science: A Comprehensive Guide
DOCX
Machine learning Experiments report
PPTX
CS301_Detailed_Overview_MATLAB_Mathematica_Python.pptx
PPTX
Data Science With Python | Python For Data Science | Python Data Science Cour...
PPTX
Python for Machine Learning(MatPlotLib).pptx
PPTX
Python-Libraries,Numpy,Pandas,Matplotlib.pptx
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Linux
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Mac
Data Analysis packages
Introduction to Machine Learning by MARK
DS LAB MANUAL.pdf
matplotlib fully explained in detail with examples
Python for statistical analysis
Scientific Python
NumPy and SciPy for Data Mining and Data Analysis Including iPython, SciKits,...
Download full ebook of Mastering Pandas Femi Anthony instant download pdf
Introduction to Pylab and Matploitlib.
Mastering pandas 1st Edition Femi Anthony
Scipy Libraries to Work with Various Datasets.pptx
Python for Data Science: A Comprehensive Guide
Machine learning Experiments report
CS301_Detailed_Overview_MATLAB_Mathematica_Python.pptx
Data Science With Python | Python For Data Science | Python Data Science Cour...
Python for Machine Learning(MatPlotLib).pptx
Python-Libraries,Numpy,Pandas,Matplotlib.pptx
Ad

More from Vinita Silaparasetty (12)

PDF
R Upgrade Instructions
PDF
Installation instructions for R
PDF
Reshape2 Installation Instructions
PDF
Dplyr Installation Instructions
PDF
Ggplot2 Installation Instructions
PDF
PDF
Motion Sensing Couture
PPTX
What is Jupyter Notebook?
PDF
How to Install Python on Linux
PDF
How to Install Python on Mac
PDF
How to Install Python on Windows
R Upgrade Instructions
Installation instructions for R
Reshape2 Installation Instructions
Dplyr Installation Instructions
Ggplot2 Installation Instructions
Motion Sensing Couture
What is Jupyter Notebook?
How to Install Python on Linux
How to Install Python on Mac
How to Install Python on Windows

Recently uploaded (20)

PPTX
Supervised vs unsupervised machine learning algorithms
PPT
Reliability_Chapter_ presentation 1221.5784
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PPTX
Qualitative Qantitative and Mixed Methods.pptx
PPT
ISS -ESG Data flows What is ESG and HowHow
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PPTX
Introduction to machine learning and Linear Models
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
Business Acumen Training GuidePresentation.pptx
PDF
Business Analytics and business intelligence.pdf
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PDF
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPT
Quality review (1)_presentation of this 21
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
Supervised vs unsupervised machine learning algorithms
Reliability_Chapter_ presentation 1221.5784
Galatica Smart Energy Infrastructure Startup Pitch Deck
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
Qualitative Qantitative and Mixed Methods.pptx
ISS -ESG Data flows What is ESG and HowHow
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
Business Ppt On Nestle.pptx huunnnhhgfvu
Introduction to machine learning and Linear Models
Introduction to Knowledge Engineering Part 1
Business Acumen Training GuidePresentation.pptx
Business Analytics and business intelligence.pdf
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Quality review (1)_presentation of this 21
STUDY DESIGN details- Lt Col Maksud (21).pptx

How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Windows

  • 1. How to Install Numpy, Scipy, Matplotlib, Pandas & Scikit-Learn on Windows Python comes loaded with powerful packages that make machine learning tasks easier. This is why it is the language of choice among data scientists. Of the vast collection of libraries that you can choose from, there are a set of basic libraries you should be familiar with as a beginner. In this tutorial we are going to install these basic libraries on our system using Python’s built in package manager PIP. Numpy: NumPy (stands for Numerical Python) provides useful features for operations on n-arrays and matrices in Python. It provides vectorization of mathematical operations on the NumPy array type. Installation: 1. In the terminal type the command pip install numpy 2. For security reasons, you will be asked to enter your password. 3. Installation will take only a few seconds. Numpy is now installed on your system. Testing: 1. In the terminal, start Python by typing the command python 2. Use the following error handling block: try: import numpy except ImportError: print (“numpy is not installed”) 3. If numpy is installed successfully, then you will not get any message in the terminal. Otherwise you will get an error message saying “numpy is not installed”. Troubleshooting: If you get the error message, try this command pip install -U numpy Scipy: SciPy contains modules for linear algebra, optimization, integration, and statistics. It is built upon NumPy. It provides efficient numerical routines as numerical integration, optimization, and more via specific submodules. Installation:
  • 2. 1. In the terminal type the command pip install scipy 2. For security reasons, you will be asked to enter your password. 3. Installation will take only a few seconds. Scipy is now installed on your system. Testing: 1. In the terminal, start Python by typing the command python 2. Use the following error handling block: try: import scipy except ImportError: print (“scipy is not installed”) 3. If scipy is installed successfully, then you will not get any message in the terminal. Otherwise you will get an error message saying “scipy is not installed”. Troubleshooting: If you get the error message, try this command pip install -U scipy Matplotlib: It is used for the generation of simple and powerful visualizations. You can make just about any visualizations such as bar charts, histograms & pie charts. There are facilities for creating labels, grids and other formatting elements. Installation: 1. In the terminal type the command pip install matplotlib 2. For security reasons, you will be asked to enter your password. 3. Installation will take only a few seconds. Matplotlib is now installed on your system. Testing: 1. In the terminal, start Python by typing the command python 2. Use the following error handling block: try: import matplotlib except ImportError: print (“matplotlib is not installed”) 3. If matplotlib is installed successfully, then you will not get any message in the terminal. Otherwise you will get an error message saying “matplotlib is not installed”. Troubleshooting: If you get the error message, try this command pip install -U matplotlib
  • 3. Pandas: Pandas works with “labeled” and “relational” data. Pandas is primarily used for data wrangling. It was designed for quick and easy data manipulation, aggregation, and visualization. Installation: 1. In the terminal type the command pip install pandas 2. For security reasons, you will be asked to enter your password. 3. Installation will take only a few seconds. Pandas is now installed on your system. Testing: 1. In the terminal, start Python by typing the command python 2. Use the following error handling block: try: import pandas except ImportError: print (“pandas is not installed”) 3. If pandas is installed successfully, then you will not get any message in the terminal. Otherwise you will get an error message saying “pandas is not installed”. Troubleshooting: If you get the error message, try this command pip install -U pandas Scikit-Learn: This package is built on the top of SciPy and makes heavy use of its mathematical operations. It provides access to common machine learning algorithms, making it simple to bring machine learning into any project. It is easy to use and is great for playing around with machine learning concepts. Installation: 1. In the terminal type the command pip install scikit-learn 2. For security reasons, you will be asked to enter your password. 3. Installation will take only a few seconds. Scikit-Learn is now installed on your system. Testing: 1. In the terminal, start Python by typing the command python 2. Use the following error handling block: try: import scikit-learn except ImportError: print (“scikit-learn is not installed”)
  • 4. 3. If scikit-learn is installed successfully, then you will not get any message in the terminal. Otherwise you will get an error message saying “scikit-learn is not installed”. Troubleshooting: If you get the error message, try this command pip install -U scikit-learn You are now armed with the basic tools that you need to begin your data science journey.