ModuleNotFoundError: No module named 'scratch'

Author: emmanuel59Created May 1, 2023Updated Jul 24, 2023

I've got your book and I'm working through it.

I download the whole repo to folder c:\data-science-from-scratch on Windows.

There is the following code in chapter "statistics" from scratch.linear_algebra import sum_of_squares In anaconda prompt I execute :

(dsfs) c:\data-science-from-scratch>python scratch\statistics.py Traceback (most recent call last): File "scratch\statistics.py", line 98, in from scratch.linear_algebra import sum_of_squares ModuleNotFoundError: No module named 'scratch'

Do you have some idea to solve the problem ?

Source: joelgrus/data-science-from-scratch