gpt4 book ai didi

zeromq - 导入错误 : No module named zmq

转载 作者:行者123 更新时间:2023-12-05 07:42:45 32 4
gpt4 key购买 nike

我已经安装了zeroMQ,但是当我运行gr-ofdm的例子时,仍然出现“ImportError: No module named zmq”的错误。

./run_benchmark_gui.sh 
------------------------------------------------------------------------------
Traceback (most recent call last):
File "/home/zhenyu/gr-ofdm/gr-ofdm/apps/gui/ofdm_tx_gui.py", line 28, in <module>
from gnuradio import zeromq
File "/usr/local/lib/python2.7/dist-packages/gnuradio/zeromq/__init__.py", line 35, in <module>
from probe_manager import probe_manager
File "/usr/local/lib/python2.7/dist-packages/gnuradio/zeromq/probe_manager.py", line 22, in <module>
import zmq
ImportError: No module named zmq
Traceback (most recent call last):
File "/home/zhenyu/gr-ofdm/gr-ofdm/apps/gui/ofdm_rx_gui.py", line 28, in <module>
from gnuradio import zeromq
File "/usr/local/lib/python2.7/dist-packages/gnuradio/zeromq/__init__.py", line 35, in <module>
from probe_manager import probe_manager
File "/usr/local/lib/python2.7/dist-packages/gnuradio/zeromq/probe_manager.py", line 22, in <module>
import zmq
ImportError: No module named zmq
Traceback (most recent call last):
File "/home/zhenyu/gr-ofdm/gr-ofdm/apps/../python/ofdm/benchmark_ofdm.py", line 23, in <module>
from gnuradio import gr, blocks, analog, zeromq
File "/usr/local/lib/python2.7/dist-packages/gnuradio/zeromq/__init__.py", line 35, in <module>
from probe_manager import probe_manager
File "/usr/local/lib/python2.7/dist-packages/gnuradio/zeromq/probe_manager.py", line 22, in <module>
import zmq
ImportError: No module named zmq
------------------------------------------------------------------------------

最佳答案

你可以试试这个命令:

wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py

/usr/local/bin/python2.7 ez_setup.py

/usr/local/bin/easy_install-2.7 zmq

关于zeromq - 导入错误 : No module named zmq,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44251629/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com