我在 Ubuntu 14.04 中成功安装了 GNU Radio。我测试了安装,它返回 100% 通过。但是,当我使用 python 代码运行它时。它返回了错误,例如
File "/home/gnuradio-3.7.5/gr-digital/examples/narrowband/uhd_interface.py", line 23, in <module>
from gnuradio import gr, uhd
ImportError: cannot import name uhd
我的错误是什么?你能帮我解决吗?谢谢
我的进口是
from gnuradio import *
from gnuradio import gr, digital
from gnuradio import eng_notation
from gnuradio.eng_option import eng_option
from optparse import OptionParser
# from current dir
from receive_path import receive_path
from transmit_path import transmit_path
from uhd_interface import uhd_transmitter
from uhd_interface import uhd_receiver