Python Forum
No module named scipy - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Data Science (https://python-forum.io/forum-44.html)
+--- Thread: No module named scipy (/thread-8998.html)



No module named scipy - kirill - Mar-16-2018

Hello. I'm trying to import scipy.io library. If I write code below in command console, it works right, but if I write this in file.py and run this I get this error. What could be problem?
from scipy.io.wavfile import *
Error:
ModuleNotFoundError: No module named 'scipy.io'; 'scipy' is not a package



RE: No module named scipy - nilamo - Mar-16-2018

Do you have a file named scipy.py? If you do, python will try to import that instead of the package.


RE: No module named scipy - kirill - Mar-16-2018

Thanks a lot of, it was a stupid mistake :)