简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM