0
I did the installation of the emoji module with
sudo apt-get install python-emoji
After installed, I confirmed the installation with
pip install emoji
I get the message
Collecting emoji
Installing collected packages: emoji
Successfully installed emoji-0.5.4
However, import emoji
is recognized in python2 but is not recognized in python3. The program testes.py
, given by
import emoji
print(emoji.emojize('ola, mundo! :thumbs_up:'))
Wheel correctly with python testes.py
, but with python3 testes.py
returns the message
ModuleNotFoundError: No module named 'emoji'
python3 does not seem to find the module. How to solve this problem?
I use the editor vi
under Xubunto.
Note 1: I checked this question, but it does not answer my question. I already have the module installed and python2 can run it. But python3, which I use most, can’t access the module.
Note 2: I managed to install with
$ git clone https://github.com/carpedm20/emoji.git
$ cd emoji
$ python setup.py install
But now I get the message
AttributeError: module 'emoji' has no attribute 'emojize'
Note 3: I found that the problem is that emoji libraries are available for python3.6 but not for python3.8. I can run the program normally with
python3.6 testes.py
However, with python3.8 testes.py
I get the message
AttributeError: module 'emoji' has no attribute 'emojize'
How do I get python3.8 access to the module libraries?
I followed the steps and it didn’t work. I keep getting the same error.
– Pedro
@Peter, and when he does
python3 -m pip install emoji
?– Gustavo Sampaio
@Gustavosampaio, I tried, but it still didn’t work. I get the same mistake
– Pedro