SlideShare a Scribd company logo
How to Install Numpy, Scipy,
Matplotlib,Pandas & Scikit-Learn
on Mac
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 sudo 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 sudo 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 sudo 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 sudo 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 sudo 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 sudo 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 sudo 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 sudo 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 sudo 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 sudo 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 (19)

Intro to exploits in metasploitand payloads in msfvenom
Intro to exploits in metasploitand payloads in msfvenomIntro to exploits in metasploitand payloads in msfvenom
Intro to exploits in metasploitand payloads in msfvenom
Siddharth Krishna Kumar
 
Pentest with Metasploit
Pentest with MetasploitPentest with Metasploit
Pentest with Metasploit
M.Syarifudin, ST, OSCP, OSWP
 
Pen-Testing with Metasploit
Pen-Testing with MetasploitPen-Testing with Metasploit
Pen-Testing with Metasploit
Mohammed Danish Amber
 
Metasploit Humla for Beginner
Metasploit Humla for BeginnerMetasploit Humla for Beginner
Metasploit Humla for Beginner
n|u - The Open Security Community
 
Defeating public exploit protections (EMET v5.2 and more)
Defeating public exploit protections (EMET v5.2 and more)Defeating public exploit protections (EMET v5.2 and more)
Defeating public exploit protections (EMET v5.2 and more)
securityxploded
 
Metasploit
MetasploitMetasploit
Metasploit
Raghunath G
 
Information gathering
Information gatheringInformation gathering
Information gathering
MoTechInc
 
Reversing malware analysis training part7 unpackingupx
Reversing malware analysis training part7 unpackingupxReversing malware analysis training part7 unpackingupx
Reversing malware analysis training part7 unpackingupx
Cysinfo Cyber Security Community
 
Metasploit For Beginners
Metasploit For BeginnersMetasploit For Beginners
Metasploit For Beginners
Ramnath Shenoy
 
Metasploit Basics
Metasploit BasicsMetasploit Basics
Metasploit Basics
amiable_indian
 
Reversing & malware analysis training part 1 lab setup guide
Reversing & malware analysis training part 1   lab setup guideReversing & malware analysis training part 1   lab setup guide
Reversing & malware analysis training part 1 lab setup guide
securityxploded
 
Finalppt metasploit
Finalppt metasploitFinalppt metasploit
Finalppt metasploit
devilback
 
Metasploit
MetasploitMetasploit
Metasploit
henelpj
 
Advanced malware analysis training session 7 malware memory forensics
Advanced malware analysis training session 7 malware memory forensicsAdvanced malware analysis training session 7 malware memory forensics
Advanced malware analysis training session 7 malware memory forensics
Cysinfo Cyber Security Community
 
Metasploit framwork
Metasploit framworkMetasploit framwork
Metasploit framwork
Deepanshu Gajbhiye
 
Penetration testing using metasploit
Penetration testing using metasploitPenetration testing using metasploit
Penetration testing using metasploit
Aashish R
 
Wordpress security
Wordpress securityWordpress security
Wordpress security
Mehmet Ince
 
PHPCS (PHP Code Sniffer)
PHPCS (PHP Code Sniffer)PHPCS (PHP Code Sniffer)
PHPCS (PHP Code Sniffer)
Oleksii Prohonnyi
 
iCrOSS 2013_Pentest
iCrOSS 2013_PentestiCrOSS 2013_Pentest
iCrOSS 2013_Pentest
M.Syarifudin, ST, OSCP, OSWP
 
Intro to exploits in metasploitand payloads in msfvenom
Intro to exploits in metasploitand payloads in msfvenomIntro to exploits in metasploitand payloads in msfvenom
Intro to exploits in metasploitand payloads in msfvenom
Siddharth Krishna Kumar
 
Defeating public exploit protections (EMET v5.2 and more)
Defeating public exploit protections (EMET v5.2 and more)Defeating public exploit protections (EMET v5.2 and more)
Defeating public exploit protections (EMET v5.2 and more)
securityxploded
 
Information gathering
Information gatheringInformation gathering
Information gathering
MoTechInc
 
Metasploit For Beginners
Metasploit For BeginnersMetasploit For Beginners
Metasploit For Beginners
Ramnath Shenoy
 
Reversing & malware analysis training part 1 lab setup guide
Reversing & malware analysis training part 1   lab setup guideReversing & malware analysis training part 1   lab setup guide
Reversing & malware analysis training part 1 lab setup guide
securityxploded
 
Finalppt metasploit
Finalppt metasploitFinalppt metasploit
Finalppt metasploit
devilback
 
Metasploit
MetasploitMetasploit
Metasploit
henelpj
 
Advanced malware analysis training session 7 malware memory forensics
Advanced malware analysis training session 7 malware memory forensicsAdvanced malware analysis training session 7 malware memory forensics
Advanced malware analysis training session 7 malware memory forensics
Cysinfo Cyber Security Community
 
Penetration testing using metasploit
Penetration testing using metasploitPenetration testing using metasploit
Penetration testing using metasploit
Aashish R
 
Wordpress security
Wordpress securityWordpress security
Wordpress security
Mehmet Ince
 

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

Taishaun_OwnensCNS-533_Lab
Taishaun_OwnensCNS-533_LabTaishaun_OwnensCNS-533_Lab
Taishaun_OwnensCNS-533_Lab
Taishaun Owens
 
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
 
Pythonpresent
PythonpresentPythonpresent
Pythonpresent
Chui-Wen Chiu
 
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
 
Python on pi
Python on piPython on pi
Python on pi
swee meng ng
 
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
 
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
 
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
 
arduino
arduinoarduino
arduino
murbz
 
Deploy MediaWiki usgin Fiware Lab Facilities
Deploy MediaWiki usgin Fiware Lab FacilitiesDeploy MediaWiki usgin Fiware Lab Facilities
Deploy MediaWiki usgin Fiware Lab Facilities
José Ignacio Carretero Guarde
 
Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10
stemplar
 
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
 
Deploy Mediawiki Using FIWARE Lab Facilities
Deploy Mediawiki Using FIWARE Lab FacilitiesDeploy Mediawiki Using FIWARE Lab Facilities
Deploy Mediawiki Using FIWARE Lab Facilities
FIWARE
 
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
 
[CON3189] JavaOne 2016 - Introduction to Java ME development for the Raspberr...
[CON3189] JavaOne 2016 - Introduction to Java ME development for the Raspberr...[CON3189] JavaOne 2016 - Introduction to Java ME development for the Raspberr...
[CON3189] JavaOne 2016 - Introduction to Java ME development for the Raspberr...
Kevin Hooke
 
Data analysis with pandas
Data analysis with pandasData analysis with pandas
Data analysis with pandas
Outreach Digital
 
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
 
Taishaun_OwnensCNS-533_Lab
Taishaun_OwnensCNS-533_LabTaishaun_OwnensCNS-533_Lab
Taishaun_OwnensCNS-533_Lab
Taishaun Owens
 
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
 
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 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
 
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
 
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
 
arduino
arduinoarduino
arduino
murbz
 
Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10Ardx eg-spar-web-rev10
Ardx eg-spar-web-rev10
stemplar
 
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
 
Deploy Mediawiki Using FIWARE Lab Facilities
Deploy Mediawiki Using FIWARE Lab FacilitiesDeploy Mediawiki Using FIWARE Lab Facilities
Deploy Mediawiki Using FIWARE Lab Facilities
FIWARE
 
[CON3189] JavaOne 2016 - Introduction to Java ME development for the Raspberr...
[CON3189] JavaOne 2016 - Introduction to Java ME development for the Raspberr...[CON3189] JavaOne 2016 - Introduction to Java ME development for the Raspberr...
[CON3189] JavaOne 2016 - Introduction to Java ME development for the Raspberr...
Kevin Hooke
 
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
 
Ad

More from Vinita Silaparasetty (10)

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 Windows
How to Install Python on WindowsHow to Install Python on Windows
How to Install Python on Windows
Vinita Silaparasetty
 
Speaker
SpeakerSpeaker
Speaker
Vinita Silaparasetty
 
Ad

Recently uploaded (20)

Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
James Francis Paradigm Asset Management
 
Modern_Distribution_Presentation.pptx Aa
Modern_Distribution_Presentation.pptx AaModern_Distribution_Presentation.pptx Aa
Modern_Distribution_Presentation.pptx Aa
MuhammadAwaisKamboh
 
04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story
ccctableauusergroup
 
DPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdfDPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdf
inmishra17121973
 
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Abodahab
 
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
 
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
 
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
 
Geometry maths presentation for begginers
Geometry maths presentation for begginersGeometry maths presentation for begginers
Geometry maths presentation for begginers
zrjacob283
 
Digilocker under workingProcess Flow.pptx
Digilocker  under workingProcess Flow.pptxDigilocker  under workingProcess Flow.pptx
Digilocker under workingProcess Flow.pptx
satnamsadguru491
 
Cleaned_Lecture 6666666_Simulation_I.pdf
Cleaned_Lecture 6666666_Simulation_I.pdfCleaned_Lecture 6666666_Simulation_I.pdf
Cleaned_Lecture 6666666_Simulation_I.pdf
alcinialbob1234
 
chapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptxchapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptx
justinebandajbn
 
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
 
Flip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptxFlip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptx
mubashirkhan45461
 
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnTemplate_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
cegiver630
 
IAS-slides2-ia-aaaaaaaaaaain-business.pdf
IAS-slides2-ia-aaaaaaaaaaain-business.pdfIAS-slides2-ia-aaaaaaaaaaain-business.pdf
IAS-slides2-ia-aaaaaaaaaaain-business.pdf
mcgardenlevi9
 
Medical Dataset including visualizations
Medical Dataset including visualizationsMedical Dataset including visualizations
Medical Dataset including visualizations
vishrut8750588758
 
C++_OOPs_DSA1_Presentation_Template.pptx
C++_OOPs_DSA1_Presentation_Template.pptxC++_OOPs_DSA1_Presentation_Template.pptx
C++_OOPs_DSA1_Presentation_Template.pptx
aquibnoor22079
 
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
 
LLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bertLLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bert
ChadapornK
 
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
James Francis Paradigm Asset Management
 
Modern_Distribution_Presentation.pptx Aa
Modern_Distribution_Presentation.pptx AaModern_Distribution_Presentation.pptx Aa
Modern_Distribution_Presentation.pptx Aa
MuhammadAwaisKamboh
 
04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story
ccctableauusergroup
 
DPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdfDPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdf
inmishra17121973
 
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Abodahab
 
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
 
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
 
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
 
Geometry maths presentation for begginers
Geometry maths presentation for begginersGeometry maths presentation for begginers
Geometry maths presentation for begginers
zrjacob283
 
Digilocker under workingProcess Flow.pptx
Digilocker  under workingProcess Flow.pptxDigilocker  under workingProcess Flow.pptx
Digilocker under workingProcess Flow.pptx
satnamsadguru491
 
Cleaned_Lecture 6666666_Simulation_I.pdf
Cleaned_Lecture 6666666_Simulation_I.pdfCleaned_Lecture 6666666_Simulation_I.pdf
Cleaned_Lecture 6666666_Simulation_I.pdf
alcinialbob1234
 
chapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptxchapter 4 Variability statistical research .pptx
chapter 4 Variability statistical research .pptx
justinebandajbn
 
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
 
Flip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptxFlip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptx
mubashirkhan45461
 
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnTemplate_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
cegiver630
 
IAS-slides2-ia-aaaaaaaaaaain-business.pdf
IAS-slides2-ia-aaaaaaaaaaain-business.pdfIAS-slides2-ia-aaaaaaaaaaain-business.pdf
IAS-slides2-ia-aaaaaaaaaaain-business.pdf
mcgardenlevi9
 
Medical Dataset including visualizations
Medical Dataset including visualizationsMedical Dataset including visualizations
Medical Dataset including visualizations
vishrut8750588758
 
C++_OOPs_DSA1_Presentation_Template.pptx
C++_OOPs_DSA1_Presentation_Template.pptxC++_OOPs_DSA1_Presentation_Template.pptx
C++_OOPs_DSA1_Presentation_Template.pptx
aquibnoor22079
 
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
 
LLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bertLLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bert
ChadapornK
 

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

  • 1. How to Install Numpy, Scipy, Matplotlib,Pandas & Scikit-Learn on Mac 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 sudo 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 sudo 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 sudo 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 sudo 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 sudo 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 sudo 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 sudo 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 sudo 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 sudo 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 sudo pip install -U scikit-learn You are now armed with the basic tools that you need to begin your data science journey.