简体   繁体   中英

ModuleNotFoundError: No module named utils

I'm trying to run the python code in jupyter.

The error I'm getting is from utils import get_data ModuleNotFoundError: No module named 'utils'

Which relates to line:

from utils import get_data

I have even installed This package but still tells utils module not found

conda install -c conda-forge python-utils.

There's a few reasons why you get such an error common one are

  1. naming a variable, function as utils
  2. naming your file name as utils (probably this 2)
  3. It wasn't downloaded correctly

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