R. David Murray added the comment:
Presumably the book didn't tell you everything you need to know to make this
work, or you missed something in the instructions, since this certainly does
work if the module is in a directory on sys.path. (The 'python module1.py'
will only work at the windows
New submission from Бобёр Сатанист:
How to import modules/files in Python 3.6.2? I started to study python, in the
section about importing modules, here is an example: I created a text file with
the text "print('Hello module world!')" and saved it with the name
"module1.py". I put the file in