pangeo-data / scikit-downscale

Statistical climate downscaling in Python
https://scikit-downscale.readthedocs.io/en/latest/
Apache License 2.0
185 stars 47 forks source link

importError #30

Closed Damonfruit closed 3 years ago

Damonfruit commented 4 years ago

Dear J.hamman: When I run the command "from utils import get_sample_data"from the file“2020ECAHM-scikit-downscale.ipynb”,I got an error as the following: ImportError: cannot import name 'get_sample_data' from 'utils' (/root/anaconda3/lib/python3.7/site-packages/utils/init.py)

why? I had installed the module 'utils' by the command ‘pip install utils’. I'm so confused. Help me!

jhamman commented 4 years ago

@Damonfruit - sorry for the slow response here. The utils module is local to this package so you shouldn't need to pip install it. Can you share a bit more info about your setup process?

PiuChu commented 2 years ago

Hello J.hamman @jhamman , Sorry that I am bothering you after you have closed this post. I ran into the same problem trying to import the library (from utils import get_sample_data). The error message says " ModuleNotFoundError: No module named 'utils'". I don't know if you provided any solution to the person that asked the initial question. Hoping to hear from you. Thank you Hello @Damonfruit