kylebgorman / pynini

Read-only mirror of Pynini
http://pynini.opengrm.org
Apache License 2.0
118 stars 27 forks source link

Cannot install pynini==2.1.5 via pip #80

Closed sj-h4 closed 1 month ago

sj-h4 commented 1 month ago

Hi, there. Thank you for your great job. I am encountering an error even though Cython is installed. I use Linux (x86-64). The error message is:

ModuleNotFoundError: No module named 'Cython'

How do I solve this problem?

kylebgorman commented 1 month ago

As is documented here, this was an issue with the v2.1.5 release. There is a release 2.1.5.post2 if you really need the 2.1.5 feature set. We are currently on version 2.1.6, though, and you probably want that one instead.

If you're on x86-64 Linux though why bother compiling from scratch? We ship a precompiled version for that platform. Run pip install --only-binary :all: pynini==2.1.5.post1 if you need 2.1.5 features or pip install --only-binary :all: pynini if you just want the newest version. Or, if you use Conda you can install these like conda install -c conda-forge pynini etc.