jakevdp / nfft

Lightweight non-uniform Fast Fourier Transform in Python
MIT License
201 stars 29 forks source link

Problem with installation with conda #9

Closed stormyweathers closed 5 years ago

stormyweathers commented 5 years ago

Hey there,

I installed this module with conda. The output from "conda list" shows: nfft 3.2.4 hf8c457e_1000 conda-forge

but when I try to use the module I get:

import nfft Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'nfft'

jakevdp commented 5 years ago

Make sure your Python environment matches the environment where you installed the package.

stormyweathers commented 5 years ago

thanks for the quick response!

I installed it and attempted to access it in my base environment

stormyweathers commented 5 years ago

Originally, I had nfft provided by pynfft. I tried uninstalling pynfft and then updating nfft to version 3.4.1, but I still have the same problem.

I was able to import pynfft, however.

stormyweathers commented 5 years ago

oops! It turns out that conda installed the c-library nfft, and is not aware of your pure python nfft package.

When I installed with pip, everything works fine.