2

I am trying to install "emoji" and then importing "emojize" but getting an error:

(base) Admin$ python --version
Python 2.7.15 :: Anaconda, Inc.
(base) Admin$ pip install emoji
Collecting emoji
  Downloading https://files.pythonhosted.org/packages/47/e7/cf76e0774b13459e61ffe16a042a35f42e292aeebba060b919c05b0854ab/emoji-0.5.0.tar.gz (41kB)
    100% |████████████████████████████████| 51kB 795kB/s 
Building wheels for collected packages: emoji
  Running setup.py bdist_wheel for emoji ... done
  Stored in directory: /Users/Library/Caches/pip/wheels/5d/60/eb/49bb6f75caa1bd0b277d43bd14ac3ea1db3e5ed030d2013852
Successfully built emoji
Installing collected packages: emoji
Successfully installed emoji-0.5.0
(base) Admin$ from emoji import emojize
from: can't read /var/mail/emoji
(base) Admin$

Any suggestions please.

Alpha001
  • 331
  • 1
  • 7
  • 18

1 Answers1

2

If you want to open the Python interpreter also known a the Python REPL you can see that it has been downloaded correctly. It should look like this:

 $ python3.7
 Python 3.7 (default, Sep 16 2015, 09:25:04)
 [GCC 4.8.2] on linux
 Type "help", "copyright", "credits" or "license" for more information.
 >>>from emoji import emojize
 >>>

But emoji doesn't just exist magically in your machine. It exists in Python. So if Python is on your path you can just type in "python3.7" (as in the example above) and then it will start up the REPL, at which point you can type in from emoji import emojize and it should come back with no errors.

Also, I would highly recommend reading some Python documentation.

C. Fennell
  • 992
  • 12
  • 20