简体   繁体   中英

Python Error: ImportError: No module named FFT

I am using python version 2.7.3 in windows and ubuntu as well as 2.6 in windows. Why does the following code that imports several modules result in an error in both windows as well as ubuntu?

from FFT import *
from pylab import *
from numpy import *
from sampling import *
import pickle
import scipy

ImportError: No module named FFT

from FFT import *

我相信这^^^应该是:

from numpy.fft import *

Use fftpack instead fft

from scipy.fftpack import fft

see the docs

我发现的唯一解决方案是转向便携式 python http://portablepython.com/wiki/PortablePython2.7.6.1/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM