Skip to content
Related Articles

Related Articles

How to Install Pandas-Profiling on MacOS?

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 26 Nov, 2021

In this article, we will learn how to install Pandas-Profiling in Python on macOS.

Pandas profiling is an open-source Python module with which we can quickly do an exploratory data analysis with just a few lines of code. Besides, if this is not enough to convince us to use this tool, it also generates interactive reports in a web format that can be presented to any person, even if they don’t know to program.

In short, what pandas profiling does is save us all the work of visualizing and understanding the distribution of each variable. It generates a report with all the information easily available.

Installing Pandas-Profiling on MacOS:

Method 1: Using pip to install Pandas-Profiling Package

Follow the below steps to install the Pandas-Profiling package on macOS using pip:

Step 1: Install the latest Python3 in MacOS

Step 2: Check if pip3 and python3 are correctly installed.

python3 --version
pip3 --version

checking python and pip version in macos

Step 3: Upgrade your pip to avoid errors during installation.

pip3 install --upgrade pip

upgrading pip in macos

Step 4: Enter the following command to install Pandas-Profiling using pip3.

pip3 install Pandas-Profiling

installing Pandas-Profiling package on macOS using pip

Method 2: Using setup.py to install Pandas-Profiling

Follow the below steps to install the Pandas-Profiling package on macOS using the setup.py file:

Step 1: Download the latest source package of Pandas-Profiling for python3 from here.

curl https://files.pythonhosted.org/packages/03/60/a0031ba821b75e71b81bd8d43a3e03bc233697baca58790b506592900a97/pandas-profiling-3.1.0.tar.gz > pandas-profiling.tar.gz

downloading the source package for Pandas-Profiling in macos

Step 2: Extract the downloaded package using the following command.

tar -xzvf pandas-profiling.tar.gz

extracting the pandas-profiling.tar.gz file in macos

Step 3: Go inside the folder and Enter the following command to install the package.

Note: You must have developer tools for XCode MacOS installed in your system

cd pandas-profiling-3.1.0
python3 setup.py install

installing Pandas-Profiling on macOS using the setup.py file

Verifying Pandas-Profiling installation on macOS:

Make the following import in your python terminal to verify if the installation has been done properly:

import pandas_profiling

Verifying Pandas-Profiling installation on macOS

If there is any error while importing the module then is not installed properly.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!