getkeops / keops

KErnel OPerationS, on CPUs and GPUs, with autodiff and without memory overflows
https://www.kernel-operations.io
MIT License
1.03k stars 65 forks source link

ModuleNotFoundError: No module named 'pykeops' on CPU #298

Closed gmerca closed 1 year ago

gmerca commented 1 year ago

I am getting this error when running. However on python IDE it works. Is cpu supported ?

ModuleNotFoundError: No module named 'pykeops'

I have torch-1.8.1 on cpu-only laptop

gmerca commented 1 year ago

or otherwise - how to replace pykeops.torch.LazyTensor in cpu env ?

gmerca commented 1 year ago

resolved just using default torch tensor

jeanfeydy commented 1 year ago

Hi @gmerca ,

Thanks for your interest in our library. To be clear, KeOps fully supports CPU. I suspect that your issue was due to the fact that you have two Python configurations on your machine - e.g. one native, and one for your IDE ; or several conda environment. It seems likely that you installed KeOps in your IDE (pip install pykeops), but not for the "pip" of your native Python. This link may help you to use the "correct" pip.

Best regards, Jean