Error: module import emoji no found

Asked

Viewed 1,158 times

0

I am practicing a python class and need to download the emoji library so that the program after run prints the emoji that the user typed.

However, when executing, it says that the library is not installed.

I thoroughly followed the tutorial steps on the internet of how to install it in Sublime and even then it didn’t work.

How should I proceed?

My code:

import emoji
print(emoji.emojize('Olá, Mundo :sunglasses:'))

The error presented is:

Modulenotfounderror: No module named 'emoji'

  • How you installed the module?

  • Btw, I edited your question and swapped the images for text. Please, do not post with images instead of text, it becomes difficult to read, understand, reproduce and harm people who cannot see images because of blockages or vision problems. Only use images to illustrate your publication.

  • well, I used package control and installed the python fix package, based on this link [link] (https://packagecontrol.io/packages/Python%20Fix%20Imports)

  • Comment from the author of the question erroneously posted as signaling for moderation: well, I googled and saw that one of the problems could be in one of the command lines in the sublime settings that was ignoring the packages: "ignored_packages": [ "Vintage" ], and even after deleting it and restarting the software, still not read the fix package Imports

1 answer

2

Bug says library not being imported.

Install using the terminal of your own IDE, or your own operating system using the following command:

pip install emoji 

And then:

pip install emoji --upgrade

Below are several examples, both in the IDE and the OS terminal:

print de exemplo

It would be ideal if you also create a virtual environment, so you can install several libraries.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.