Keep getting ModuleNotFoundError: No module named 'pynini' in Pycharm and Spyder

770 Views Asked by At

I recently installed pynini using "conda install -c conda-forge pynini". It seems to have been installed since I checked with conda list and it was there. However, when I tried it out through PyCharm or Spyder (both with Python Interpreter to be Anaconda3), I kept getting:

ModuleNotFoundError: No module named 'pynini'

despite having installed it. I don't know where I went wrong here so any insights or help would be much appreciated! Thanks in advance!

2

There are 2 best solutions below

1
On

Which conda environment did you install? conda install -c conda-forge pynini will install on the current active environment.

On PyCharm, check which conda environment you are on.

0
On

I think it might be "PATH" problem. You should check PATH or env. OR... remove and install conda environment.