Hello? We are currently studying dimneoning to start to the bottom of the three pages. 책에서 나온 그대로 했는데도 아래와 같은 오류가 발생하는데 이유가 무엇인지 알수 있을까요?
import sys, os
sys.path.append(os.pardir)
from dataset.mnist import load_mnist
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-25-82f82e240db8> in <module>
3 import sys, os
4 sys.path.append(os.pardir)
----> 5 from dataset.mnist import load_mnist
ModuleNotFoundError: No module named 'dataset'
The dataset
directory should be under the parent directory of the script file that you want to run. mnist.py
must also exist under dataset
.
https://github.com/WegraLee/deep-learning-from-scratch
Take the source of the link as a download zip, release it, and run the example script in the ch03
folder first, make sure it works, look at the directory structure, and make your own.
When import
, I found it in the path of sys.path
and added the parent directory path to sys.path
. Because dataset
is in the parent path of the script file.
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
619 Uncaught (inpromise) Error on Electron: An object could not be cloned
916 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
573 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.