Open In App

How to Install Python Emojis module on MacOS?

Last Updated : 08 Nov, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Today, everyone uses social media and messaging apps like Facebook, Instagram, and Whatsapp, and every app has emojis that we can use to share our moods and enhance our boring messages. Now, the same gem can also be used in our Python programs for enhancing our output. In this article, we will see an easy way to install Emoji modules on macOS. Let’s look at the installation of the Python emojis module by both pip and conda.

Pre Requisites

Below is some recommended thing that you should have for installing the Emoji module on macOS are:

  • Python
  • PIP or Conda (Depending upon user preference)

Installing Emoji Module on MacOS

Method 1: Installation with the help of PIP

Step 1: Installation Using PIP. Users who prefer pip can install the Emoji module on macOS using the following command in the terminal:

pip install emoji

You will get a similar message once the installation is complete.

Installing-emoji-using-pip

 

Step 2: Verifying Emoji Module Installation Using PIP. To verify that the Emoji module has been successfully installed on your system, run the following command in the terminal:

pip show emoji

Verifying-emoji-using-pip

 

Method 2: Installation with the help of Conda

Step 1: Installation Using Conda. Users who prefer Conda can install the Emoji module on macOS using the following command in the terminal:

conda install -c conda-forge emoji

Installing-emoji-using-conda

 

Step 2: Verifying Emoji Module Installation Using Conda. To verify that the Emoji module has been successfully installed on your system, run the following command in the terminal:

conda list emoji

Verifying-emoji-using-conda

 

How To Use Emoji in Output?

Below is a simple code that shows how to use the emoji library to display emojis in the output.

Python3




import emoji
print(emoji.emojize(":grinning_face_with_big_eyes:")," ","Hi Geek!")


Output:

Output-for-the-emoji

 


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads