Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No module named scipy
#1
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
Reply
#2
Do you have a file named scipy.py? If you do, python will try to import that instead of the package.
Reply
#3
Thanks a lot of, it was a stupid mistake :)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Keras. ModuleNotFoundError: No module named 'error' agatte 1 7,059 Sep-18-2019, 12:27 PM
Last Post: shivani
  ModuleNotFoundError: No module named 'stop_words' knchris2004 6 12,722 Jul-04-2019, 10:31 PM
Last Post: snippsat
  ModuleNotFoundError: No module named '_pywrap_tensorflow_internal' rajeev1729 1 24,363 Jul-04-2018, 06:26 PM
Last Post: stpaulchuck
  No module named pip Viesturs 4 49,633 Jun-08-2018, 06:41 AM
Last Post: volcano63
  ModuleNotFoundError: No module named 'adspy_shared_utilities' POOJASWAMY 0 8,151 Feb-09-2018, 05:46 AM
Last Post: POOJASWAMY
  No module named numpy rdx 7 59,049 Sep-24-2017, 07:12 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020