Open In App

How to Install Keras on MacOS?

Improve
Improve
Like Article
Like
Save
Share
Report

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.


Last Updated : 30 Sep, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads