k2-fsa / k2

FSA/FST algorithms, differentiable, with PyTorch compatibility.
https://k2-fsa.github.io/k2
Apache License 2.0
1.08k stars 211 forks source link

ModuleNotFoundError: No module named '_k2' #1278

Closed AKG-0501 closed 2 months ago

AKG-0501 commented 3 months ago

I got this error when using k2 after installing it Traceback (most recent call last): File "/home/ljn/anaconda3/envs/eend/lib/python3.7/site-packages/k2/init.py", line 24, in from _k2 import DeterminizeWeightPushingType ModuleNotFoundError: No module named '_k2'

csukuangfj commented 3 months ago

Could you describe how you installed k2?

AKG-0501 commented 3 months ago

Could you describe how you installed k2?

I use this command: pip install k2==1.23.3

csukuangfj commented 3 months ago

Please uninstall it

and

follow our doc to install k2

and

retry.

AKG-0501 commented 3 months ago

Please uninstall it

and

follow our doc to install k2

and

retry.

I can't find the installation documentation, can you send me a link.thanks

csukuangfj commented 3 months ago

Please see

https://k2-fsa.github.io/k2/installation/from_wheels.html#linux-cuda-example