简体   繁体   中英

No module named 'utils'

I am new to the world of python. I am trying to learn first order logic fromhttps://github.com/aimacode/aima-python/blob/master/logic.ipynb

I just follow the same steps as mentioned but I get the following error.

ModuleNotFoundError: No module named 'utils'

在此处输入图片说明

I use Jupyter notebook for the testing purpose. I can see there are questions related to this error. But still I could not solve it. Thanks for any input.

You need to clone the whole Github repo, not only download (or copy from) the Notebook.

See utils.py is a separate file.

https://github.com/aimacode/aima-python/blob/master/utils.py

Also refer to Installation Guide

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