0

I running Python 2.7 . I'm on OSX Yosemite.

I just installed pyenchant via:

pip install enchant as per the instructions.

On the terminal, I can import the module and run the example.

On a Jupyter notebook, I can't import the module:

ImportError: No module named enchant

Is there anything I can do in order to run this library via Jupyter notebook? Thanks.

Monica Heddneck
  • 2,973
  • 10
  • 55
  • 89

1 Answers1

0

Have you installed conda to manage your environments? Did you launch the notebook and install enchant in the same environment?

Sraw
  • 18,892
  • 11
  • 54
  • 87
  • Not really messing around with virtual envs or anything...just wanted a vanilla install. Maybe I can't get away with that and will need to set up an environment. Not using conda... – Monica Heddneck May 25 '17 at 01:59
  • @MonicaHeddneck Did you restart kernel after installing enchant? – Sraw May 25 '17 at 02:07
  • @MonicaHeddneck It's really wired, I have test this module in ubuntu16.04 with python3.6 and jupyter notebook. I can import it even without restarting kernel. Maybe this is a problem about module path. You can use `enchant.__file__` to check the path in terminal and figure out is it a standard path. – Sraw May 25 '17 at 02:27
  • I'm using Yosemite, I should add (and did add). I'll check out your suggestion. – Monica Heddneck May 25 '17 at 02:36