Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

How to Install Keras on MacOS?

  • Difficulty Level : Basic
  • Last Updated : 30 Sep, 2021

In this article, we will learn how to install Keras in Python on macOS. Keras is an open-source software library that provides a Python interface for artificial neural networks.

Using pip to install Keras Package on MacOS:

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

pip3 install keras

installing Keras package on macOS using pip

Verifying Keras installation on macOS:

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

import keras

Verifying Keras 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!