SlideShare a Scribd company logo
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.
Ad

More Related Content

What's hot (20)

Python strings presentation
Python strings presentationPython strings presentation
Python strings presentation
VedaGayathri1
 
Introduction to NumPy (PyData SV 2013)
Introduction to NumPy (PyData SV 2013)Introduction to NumPy (PyData SV 2013)
Introduction to NumPy (PyData SV 2013)
PyData
 
Lecture_7-Encapsulation in Java.pptx
Lecture_7-Encapsulation in Java.pptxLecture_7-Encapsulation in Java.pptx
Lecture_7-Encapsulation in Java.pptx
ShahinAhmed49
 
Character Array and String
Character Array and StringCharacter Array and String
Character Array and String
Tasnima Hamid
 
Numpy tutorial
Numpy tutorialNumpy tutorial
Numpy tutorial
HarikaReddy115
 
Sorting
SortingSorting
Sorting
Ashim Lamichhane
 
What is Multithreading In Python | Python Multithreading Tutorial | Edureka
What is Multithreading In Python | Python Multithreading Tutorial | EdurekaWhat is Multithreading In Python | Python Multithreading Tutorial | Edureka
What is Multithreading In Python | Python Multithreading Tutorial | Edureka
Edureka!
 
UNIT III NON LINEAR DATA STRUCTURES – TREES
UNIT III 	NON LINEAR DATA STRUCTURES – TREESUNIT III 	NON LINEAR DATA STRUCTURES – TREES
UNIT III NON LINEAR DATA STRUCTURES – TREES
Kathirvel Ayyaswamy
 
Tuples in Python
Tuples in PythonTuples in Python
Tuples in Python
DPS Ranipur Haridwar UK
 
Classical Encryption Techniques
Classical Encryption TechniquesClassical Encryption Techniques
Classical Encryption Techniques
university of education,Lahore
 
Quick sort
Quick sortQuick sort
Quick sort
Dhruv Sabalpara
 
Supervised Machine Learning
Supervised Machine LearningSupervised Machine Learning
Supervised Machine Learning
Ankit Rai
 
Linked list
Linked listLinked list
Linked list
KalaivaniKS1
 
Difference between structure and union
Difference between structure and unionDifference between structure and union
Difference between structure and union
Appili Vamsi Krishna
 
RSA ALGORITHM
RSA ALGORITHMRSA ALGORITHM
RSA ALGORITHM
Sathish Kumar
 
Command line arguments.21
Command line arguments.21Command line arguments.21
Command line arguments.21
myrajendra
 
Data Structures (CS8391)
Data Structures (CS8391)Data Structures (CS8391)
Data Structures (CS8391)
Elavarasi K
 
List in Python
List in PythonList in Python
List in Python
Sharath Ankrajegowda
 
Message authentication
Message authenticationMessage authentication
Message authentication
CAS
 
Sets in python
Sets in pythonSets in python
Sets in python
baabtra.com - No. 1 supplier of quality freshers
 
Python strings presentation
Python strings presentationPython strings presentation
Python strings presentation
VedaGayathri1
 
Introduction to NumPy (PyData SV 2013)
Introduction to NumPy (PyData SV 2013)Introduction to NumPy (PyData SV 2013)
Introduction to NumPy (PyData SV 2013)
PyData
 
Lecture_7-Encapsulation in Java.pptx
Lecture_7-Encapsulation in Java.pptxLecture_7-Encapsulation in Java.pptx
Lecture_7-Encapsulation in Java.pptx
ShahinAhmed49
 
Character Array and String
Character Array and StringCharacter Array and String
Character Array and String
Tasnima Hamid
 
What is Multithreading In Python | Python Multithreading Tutorial | Edureka
What is Multithreading In Python | Python Multithreading Tutorial | EdurekaWhat is Multithreading In Python | Python Multithreading Tutorial | Edureka
What is Multithreading In Python | Python Multithreading Tutorial | Edureka
Edureka!
 
UNIT III NON LINEAR DATA STRUCTURES – TREES
UNIT III 	NON LINEAR DATA STRUCTURES – TREESUNIT III 	NON LINEAR DATA STRUCTURES – TREES
UNIT III NON LINEAR DATA STRUCTURES – TREES
Kathirvel Ayyaswamy
 
Supervised Machine Learning
Supervised Machine LearningSupervised Machine Learning
Supervised Machine Learning
Ankit Rai
 
Difference between structure and union
Difference between structure and unionDifference between structure and union
Difference between structure and union
Appili Vamsi Krishna
 
Command line arguments.21
Command line arguments.21Command line arguments.21
Command line arguments.21
myrajendra
 
Data Structures (CS8391)
Data Structures (CS8391)Data Structures (CS8391)
Data Structures (CS8391)
Elavarasi K
 
Message authentication
Message authenticationMessage authentication
Message authentication
CAS
 

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

How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Mac
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on MacHow to Install numpy, scipy, matplotlib, pandas and scikit-learn on Mac
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Mac
Vinita Silaparasetty
 
Programming and Secure software development presentation consists of various ...
Programming and Secure software development presentation consists of various ...Programming and Secure software development presentation consists of various ...
Programming and Secure software development presentation consists of various ...
NavneetNavi8
 
How to Install Python on Linux
How to Install Python on LinuxHow to Install Python on Linux
How to Install Python on Linux
Vinita Silaparasetty
 
Taishaun_OwnensCNS-533_Lab
Taishaun_OwnensCNS-533_LabTaishaun_OwnensCNS-533_Lab
Taishaun_OwnensCNS-533_Lab
Taishaun Owens
 
Python on pi
Python on piPython on pi
Python on pi
swee meng ng
 
Pythonpresent
PythonpresentPythonpresent
Pythonpresent
Chui-Wen Chiu
 
PyCourse - Self driving python course
PyCourse - Self driving python coursePyCourse - Self driving python course
PyCourse - Self driving python course
Eran Shlomo
 
Python setup for dummies
Python setup for dummiesPython setup for dummies
Python setup for dummies
Rajesh Rajamani
 
Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32
fanghe22
 
Get Started with MicroPython ESP32
Get Started with MicroPython ESP32Get Started with MicroPython ESP32
Get Started with MicroPython ESP32
fanghe22
 
How to install AI open source tool and environment
How to install AI open source tool and environmentHow to install AI open source tool and environment
How to install AI open source tool and environment
Tae wook kang
 
How to Install Odoo 18 with Pycharm - Odoo 18 Slides
How to Install Odoo 18 with Pycharm - Odoo 18 SlidesHow to Install Odoo 18 with Pycharm - Odoo 18 Slides
How to Install Odoo 18 with Pycharm - Odoo 18 Slides
Celine George
 
DIY in 5 Minutes: Testing Django App with Pytest
DIY in 5 Minutes: Testing Django App with Pytest DIY in 5 Minutes: Testing Django App with Pytest
DIY in 5 Minutes: Testing Django App with Pytest
Inexture Solutions
 
introduction to python programming course
introduction to python programming courseintroduction to python programming course
introduction to python programming course
FarhadMohammadRezaHa
 
Baabtra django framework installation and sample project using aptana
Baabtra django framework installation and sample project using aptanaBaabtra django framework installation and sample project using aptana
Baabtra django framework installation and sample project using aptana
baabtra.com - No. 1 supplier of quality freshers
 
Introduction To Python.pdf
Introduction To Python.pdfIntroduction To Python.pdf
Introduction To Python.pdf
Arpana Awasthi
 
Baabtra.com little coder chapter - 2
Baabtra.com little coder   chapter - 2Baabtra.com little coder   chapter - 2
Baabtra.com little coder chapter - 2
baabtra.com - No. 1 supplier of quality freshers
 
PVS-Studio Now Supports Any Build System under Windows and Any Compiler. Easy...
PVS-Studio Now Supports Any Build System under Windows and Any Compiler. Easy...PVS-Studio Now Supports Any Build System under Windows and Any Compiler. Easy...
PVS-Studio Now Supports Any Build System under Windows and Any Compiler. Easy...
Andrey Karpov
 
CrashCourse: Python with DataCamp and Jupyter for Beginners
CrashCourse: Python with DataCamp and Jupyter for BeginnersCrashCourse: Python with DataCamp and Jupyter for Beginners
CrashCourse: Python with DataCamp and Jupyter for Beginners
Olga Scrivner
 
Penetrating Windows 8 with syringe utility
Penetrating Windows 8 with syringe utilityPenetrating Windows 8 with syringe utility
Penetrating Windows 8 with syringe utility
IOSR Journals
 
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Mac
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on MacHow to Install numpy, scipy, matplotlib, pandas and scikit-learn on Mac
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Mac
Vinita Silaparasetty
 
Programming and Secure software development presentation consists of various ...
Programming and Secure software development presentation consists of various ...Programming and Secure software development presentation consists of various ...
Programming and Secure software development presentation consists of various ...
NavneetNavi8
 
Taishaun_OwnensCNS-533_Lab
Taishaun_OwnensCNS-533_LabTaishaun_OwnensCNS-533_Lab
Taishaun_OwnensCNS-533_Lab
Taishaun Owens
 
PyCourse - Self driving python course
PyCourse - Self driving python coursePyCourse - Self driving python course
PyCourse - Self driving python course
Eran Shlomo
 
Python setup for dummies
Python setup for dummiesPython setup for dummies
Python setup for dummies
Rajesh Rajamani
 
Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32Get Starte with MicroPython ESP32
Get Starte with MicroPython ESP32
fanghe22
 
Get Started with MicroPython ESP32
Get Started with MicroPython ESP32Get Started with MicroPython ESP32
Get Started with MicroPython ESP32
fanghe22
 
How to install AI open source tool and environment
How to install AI open source tool and environmentHow to install AI open source tool and environment
How to install AI open source tool and environment
Tae wook kang
 
How to Install Odoo 18 with Pycharm - Odoo 18 Slides
How to Install Odoo 18 with Pycharm - Odoo 18 SlidesHow to Install Odoo 18 with Pycharm - Odoo 18 Slides
How to Install Odoo 18 with Pycharm - Odoo 18 Slides
Celine George
 
DIY in 5 Minutes: Testing Django App with Pytest
DIY in 5 Minutes: Testing Django App with Pytest DIY in 5 Minutes: Testing Django App with Pytest
DIY in 5 Minutes: Testing Django App with Pytest
Inexture Solutions
 
introduction to python programming course
introduction to python programming courseintroduction to python programming course
introduction to python programming course
FarhadMohammadRezaHa
 
Introduction To Python.pdf
Introduction To Python.pdfIntroduction To Python.pdf
Introduction To Python.pdf
Arpana Awasthi
 
PVS-Studio Now Supports Any Build System under Windows and Any Compiler. Easy...
PVS-Studio Now Supports Any Build System under Windows and Any Compiler. Easy...PVS-Studio Now Supports Any Build System under Windows and Any Compiler. Easy...
PVS-Studio Now Supports Any Build System under Windows and Any Compiler. Easy...
Andrey Karpov
 
CrashCourse: Python with DataCamp and Jupyter for Beginners
CrashCourse: Python with DataCamp and Jupyter for BeginnersCrashCourse: Python with DataCamp and Jupyter for Beginners
CrashCourse: Python with DataCamp and Jupyter for Beginners
Olga Scrivner
 
Penetrating Windows 8 with syringe utility
Penetrating Windows 8 with syringe utilityPenetrating Windows 8 with syringe utility
Penetrating Windows 8 with syringe utility
IOSR Journals
 
Ad

More from Vinita Silaparasetty (12)

R Upgrade Instructions
R Upgrade InstructionsR Upgrade Instructions
R Upgrade Instructions
Vinita Silaparasetty
 
Installation instructions for R
Installation instructions for RInstallation instructions for R
Installation instructions for R
Vinita Silaparasetty
 
Reshape2 Installation Instructions
Reshape2 Installation InstructionsReshape2 Installation Instructions
Reshape2 Installation Instructions
Vinita Silaparasetty
 
Dplyr Installation Instructions
Dplyr Installation InstructionsDplyr Installation Instructions
Dplyr Installation Instructions
Vinita Silaparasetty
 
Ggplot2 Installation Instructions
Ggplot2 Installation InstructionsGgplot2 Installation Instructions
Ggplot2 Installation Instructions
Vinita Silaparasetty
 
GPS Handbag
GPS HandbagGPS Handbag
GPS Handbag
Vinita Silaparasetty
 
Motion Sensing Couture
Motion Sensing CoutureMotion Sensing Couture
Motion Sensing Couture
Vinita Silaparasetty
 
What is Jupyter Notebook?
What is Jupyter Notebook?What is Jupyter Notebook?
What is Jupyter Notebook?
Vinita Silaparasetty
 
How to Install Python on Mac
How to Install Python on MacHow to Install Python on Mac
How to Install Python on Mac
Vinita Silaparasetty
 
How to Install Python on Windows
How to Install Python on WindowsHow to Install Python on Windows
How to Install Python on Windows
Vinita Silaparasetty
 
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Linux
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on LinuxHow to Install numpy, scipy, matplotlib, pandas and scikit-learn on Linux
How to Install numpy, scipy, matplotlib, pandas and scikit-learn on Linux
Vinita Silaparasetty
 
Speaker
SpeakerSpeaker
Speaker
Vinita Silaparasetty
 
Ad

Recently uploaded (20)

VKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptxVKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptx
Vinod Srivastava
 
Deloitte - A Framework for Process Mining Projects
Deloitte - A Framework for Process Mining ProjectsDeloitte - A Framework for Process Mining Projects
Deloitte - A Framework for Process Mining Projects
Process mining Evangelist
 
Minions Want to eat presentacion muy linda
Minions Want to eat presentacion muy lindaMinions Want to eat presentacion muy linda
Minions Want to eat presentacion muy linda
CarlaAndradesSoler1
 
183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag
fardin123rahman07
 
Principles of information security Chapter 5.ppt
Principles of information security Chapter 5.pptPrinciples of information security Chapter 5.ppt
Principles of information security Chapter 5.ppt
EstherBaguma
 
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
ThanushsaranS
 
VKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptxVKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptx
Vinod Srivastava
 
Calories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptxCalories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptx
TijiLMAHESHWARI
 
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptxPerencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
PareaRusan
 
Deloitte Analytics - Applying Process Mining in an audit context
Deloitte Analytics - Applying Process Mining in an audit contextDeloitte Analytics - Applying Process Mining in an audit context
Deloitte Analytics - Applying Process Mining in an audit context
Process mining Evangelist
 
Data Science Courses in India iim skills
Data Science Courses in India iim skillsData Science Courses in India iim skills
Data Science Courses in India iim skills
dharnathakur29
 
Ch3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendencyCh3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendency
ayeleasefa2
 
Defense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptxDefense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptx
Greg Makowski
 
IAS-slides2-ia-aaaaaaaaaaain-business.pdf
IAS-slides2-ia-aaaaaaaaaaain-business.pdfIAS-slides2-ia-aaaaaaaaaaain-business.pdf
IAS-slides2-ia-aaaaaaaaaaain-business.pdf
mcgardenlevi9
 
Secure_File_Storage_Hybrid_Cryptography.pptx..
Secure_File_Storage_Hybrid_Cryptography.pptx..Secure_File_Storage_Hybrid_Cryptography.pptx..
Secure_File_Storage_Hybrid_Cryptography.pptx..
yuvarajreddy2002
 
ISO 9001_2015 FINALaaaaaaaaaaaaaaaa - MDX - Copy.pptx
ISO 9001_2015 FINALaaaaaaaaaaaaaaaa - MDX - Copy.pptxISO 9001_2015 FINALaaaaaaaaaaaaaaaa - MDX - Copy.pptx
ISO 9001_2015 FINALaaaaaaaaaaaaaaaa - MDX - Copy.pptx
pankaj6188303
 
Digilocker under workingProcess Flow.pptx
Digilocker  under workingProcess Flow.pptxDigilocker  under workingProcess Flow.pptx
Digilocker under workingProcess Flow.pptx
satnamsadguru491
 
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnTemplate_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
cegiver630
 
GenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.aiGenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.ai
Inspirient
 
Customer Segmentation using K-Means clustering
Customer Segmentation using K-Means clusteringCustomer Segmentation using K-Means clustering
Customer Segmentation using K-Means clustering
Ingrid Nyakerario
 
VKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptxVKS-Python Basics for Beginners and advance.pptx
VKS-Python Basics for Beginners and advance.pptx
Vinod Srivastava
 
Deloitte - A Framework for Process Mining Projects
Deloitte - A Framework for Process Mining ProjectsDeloitte - A Framework for Process Mining Projects
Deloitte - A Framework for Process Mining Projects
Process mining Evangelist
 
Minions Want to eat presentacion muy linda
Minions Want to eat presentacion muy lindaMinions Want to eat presentacion muy linda
Minions Want to eat presentacion muy linda
CarlaAndradesSoler1
 
183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag
fardin123rahman07
 
Principles of information security Chapter 5.ppt
Principles of information security Chapter 5.pptPrinciples of information security Chapter 5.ppt
Principles of information security Chapter 5.ppt
EstherBaguma
 
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
CTS EXCEPTIONSPrediction of Aluminium wire rod physical properties through AI...
ThanushsaranS
 
VKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptxVKS-Python-FIe Handling text CSV Binary.pptx
VKS-Python-FIe Handling text CSV Binary.pptx
Vinod Srivastava
 
Calories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptxCalories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptx
TijiLMAHESHWARI
 
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptxPerencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
Perencanaan Pengendalian-Proyek-Konstruksi-MS-PROJECT.pptx
PareaRusan
 
Deloitte Analytics - Applying Process Mining in an audit context
Deloitte Analytics - Applying Process Mining in an audit contextDeloitte Analytics - Applying Process Mining in an audit context
Deloitte Analytics - Applying Process Mining in an audit context
Process mining Evangelist
 
Data Science Courses in India iim skills
Data Science Courses in India iim skillsData Science Courses in India iim skills
Data Science Courses in India iim skills
dharnathakur29
 
Ch3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendencyCh3MCT24.pptx measure of central tendency
Ch3MCT24.pptx measure of central tendency
ayeleasefa2
 
Defense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptxDefense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptx
Greg Makowski
 
IAS-slides2-ia-aaaaaaaaaaain-business.pdf
IAS-slides2-ia-aaaaaaaaaaain-business.pdfIAS-slides2-ia-aaaaaaaaaaain-business.pdf
IAS-slides2-ia-aaaaaaaaaaain-business.pdf
mcgardenlevi9
 
Secure_File_Storage_Hybrid_Cryptography.pptx..
Secure_File_Storage_Hybrid_Cryptography.pptx..Secure_File_Storage_Hybrid_Cryptography.pptx..
Secure_File_Storage_Hybrid_Cryptography.pptx..
yuvarajreddy2002
 
ISO 9001_2015 FINALaaaaaaaaaaaaaaaa - MDX - Copy.pptx
ISO 9001_2015 FINALaaaaaaaaaaaaaaaa - MDX - Copy.pptxISO 9001_2015 FINALaaaaaaaaaaaaaaaa - MDX - Copy.pptx
ISO 9001_2015 FINALaaaaaaaaaaaaaaaa - MDX - Copy.pptx
pankaj6188303
 
Digilocker under workingProcess Flow.pptx
Digilocker  under workingProcess Flow.pptxDigilocker  under workingProcess Flow.pptx
Digilocker under workingProcess Flow.pptx
satnamsadguru491
 
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnTemplate_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
cegiver630
 
GenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.aiGenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.ai
Inspirient
 
Customer Segmentation using K-Means clustering
Customer Segmentation using K-Means clusteringCustomer Segmentation using K-Means clustering
Customer Segmentation using K-Means clustering
Ingrid Nyakerario
 

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.