With the GitHub code of "Deep Learning from scratch"
ModuleNotFoundError: No module named 'dataset.mnist'
Is the reason why I understand, so Description. (** I felt that the questions in the world didn't mesh with each other **, so I looked it up a bit.)
The reason is that ** there is already a module named "dataset" with a different name **. as below, Start python, Import the dataset, You can find out where it is by looking up the location.
C:\_qiita\_zero\deep-learning-from-scratch-master\ch08>python
Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 23:09:28) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>>
>>> import dataset
>>> dataset.__file__
'C:\\Users\\XYZZZ\\AppData\\Local\\Programs\\Python\\Python37\\lib\\site-packages\\dataset\\__init__.py'
>>>
For example, changing the dataset this time to dataset_zero, Isn't such a method good?
This article may be a little useful. If you have any comments, please let us know. : candy: I feel like I've experienced the same thing once before, so maybe ** python is there **.
Recommended Posts