Oct-31-2018, 03:39 PM
I entered the code for a spirograph printing program which was in the book "python playground" by Mahesh Venkitachalam only to find that it would not run.
The error:
I am using Python 3.5.0 under Microsoft Windows 10. I have not tried anything else because, quite frankly, if the modules are not on my machine, then I don't know what to do next. Can someone please tell me how to resolve these problems?
The error:
Error:Traceback (most recent call last):
File "C:\Users\New\Andys Docs\Python\Scripts\spiro.py", line 5, in <module>
import numpy as np
ImportError: No module named 'numpy'
and, after commenting that line and rerunning, got:Error:Traceback (most recent call last):
File "C:\Users\New\Andys Docs\Python\Scripts\spiro.py", line 9, in <module>
from PIL import image
ImportError: No module named 'PIL'
The modules not being available surprised me somewhat as I thought that 'numpy' at least was downloaded with Python as standard.I am using Python 3.5.0 under Microsoft Windows 10. I have not tried anything else because, quite frankly, if the modules are not on my machine, then I don't know what to do next. Can someone please tell me how to resolve these problems?