Skip to content Skip to sidebar Skip to footer

Why Am I Geting This Error? Attributeerror: 'module' Object Has No Attribute 'periodogram'

I have copied the following lines from scipy import signal import matplotlib.pyplot as plt import numpy as np fs = 10e3 N = 1e5 amp = 2*np.sqrt(2) freq = 1234.0 noise_power = 0.0

Solution 1:

>>>from scipy import signal

>>>print [x for x indir(signal) if x == 'periodogram'] #just list comprehension to limit the amount of methods displayed
['periodogram']

You definitely have something wrong with your installation of scipy. I recommend http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy this site in general is usually my first place to go when having difficulty installing or importing modules that you believe to be installed correctly.

The list of stuff on the website is not 100% of everything, but most of the big important stuff you can find there.

Post a Comment for "Why Am I Geting This Error? Attributeerror: 'module' Object Has No Attribute 'periodogram'"