Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

How to Install iPython on MacOS?

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

In this article, we will learn how to install iPython in Python on MacOS.

IPython is a command shell for interactive computing in multiple programming languages, originally developed for the Python programming language, that offers introspection, rich media, shell syntax, tab completion, and history.


Method 1: Using pip to install iPython

Follow the below steps to install the iPython 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 iPython using pip3.

pip3 install ipython 

installing ipython package on macOS using pip

Method 2: Using to install iPython 

Follow the below steps to install iPython package on macOS using the file:

Step 1: Download the latest source package of iPython for python3 from here.

curl > ipython.tar.gz

downloading the source package for iPython in macos

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

tar -xzvf ipython.tar.gz

extracting the ipython.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 ipython-7.27.0
python3 install

installing iPython on macOS using the file

Verifying iPython installation on macOS:

Enter ipython in the terminal to verify if the installation has been done properly:


Verifying iPython installation on macOS

If there is any error then is not installed properly.

My Personal Notes arrow_drop_up
Last Updated : 21 Sep, 2021
Like Article
Save Article
Similar Reads
Related Tutorials