can't import enchant using a Jupyter notebook
Asked Answered
D

1

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.

Dewy answered 25/5, 2017 at 1:11 Comment(0)
H
0

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

Hellenic answered 25/5, 2017 at 1:32 Comment(4)
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...Dewy
@MonicaHeddneck Did you restart kernel after installing enchant?Hellenic
@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.Hellenic
I'm using Yosemite, I should add (and did add). I'll check out your suggestion.Dewy

© 2022 - 2024 — McMap. All rights reserved.