简体   繁体   English

ImportError:没有名为pyfftw的模块

[英]ImportError: No module named pyfftw

Im using Ubuntu 13.10 with python 2.7. 我在python 2.7中使用Ubuntu 13.10。 When running code i get this error. 运行代码时出现此错误。 I installed FFTW and not sure why I am getting this error. 我安装了FFTW,但不确定为什么会出现此错误。 Here is my code: 这是我的代码:

import math

from gnuradio import gr

import numpy
import scipy.signal
import pyfftw

this is where I get the error. 这是我得到错误的地方。 Any help would be great. 任何帮助都会很棒。 Thanks 谢谢

Check the sys.path in python. 在python中检查sys.path。 That tells you the module search path. 这告诉您模块搜索路径。 If it is not in there, and not in the %PYTHONPATH% path (which should be in sys.path also) then it should not be able to find it. 如果它不在其中,并且不在%PYTHONPATH%路径(也应该在sys.path中)中,则它应该找不到它。 If you install a module, the interpreter still needs to know where to look for it, if it's not in the default search location. 如果安装模块,则解释器仍需要知道在哪里寻找(如果它不在默认搜索位置中)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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