Sql_Pete_Belfast
Sql_Pete_Belfast

Reputation: 600

ImportError: No module named 'dask.dataframe';

I'm trying to run a standalone python script via "Anaconda Prompt". I keep getting the error.

ImportError: No module named 'dask.dataframe';

I have installed pandas using

conda install dask

I have also installed dask via:

python -m pip install "dask[complete]"

But i still get this error. I am able to run the script in Jupyter. i have also checked i don't have a script called dask.py

Upvotes: 4

Views: 3463

Answers (1)

MRocklin
MRocklin

Reputation: 57271

I suspect that you are installing Dask into one environment, but running Python from another. I recommend comparing the results of ...

$ which python

or

$ which conda

and check your notebook environment by

import sys
print(sys.executable)

I suspect that they are different paths and that you are confusing two differently installed Python setups on your computer.

Upvotes: 2

Related Questions