You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

安装gr-lora_sdr后运行Python示例遇ModuleNotFoundError求助

gr-lora_sdr安装后Python模块缺失问题

操作步骤

我按照官方安装指引执行了以下命令:

git clone https://github.com/tapparelj/gr-lora_sdr.git
cd gr-lora_sdr/
wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.12.0-Linux-x86_64.sh
bash Miniconda3-py39_4.12.0-Linux-x86_64.sh
source ~/.bashrc
conda env create -f environment.yml 
conda activate gr310
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
(sudo) make install -j4
sudo ldconfig

遇到的问题

  • 执行make test时,提示No tests were found!!!,无有效测试输出
  • gnuradio-companion &可正常启动,且能在GNU Radio界面中看到Lora模块
  • 运行验证安装的脚本python3 examples/tx_rx_functionality_check.py时,出现模块导入错误:
    import gnuradio.lora_sdr as lora_sdr ModuleNotFoundError: No module named 'gnuradio.lora_sdr'
    

已尝试的解决措施

  • 重新克隆仓库并执行完整安装流程
  • 在.bashrc文件末尾添加了路径配置:
    export PYTHONPATH=/usr/local/lib/python3.10/dist-packages/gnuradio:/usr/local/lib/python3.10/site-packages/gnuradio:$PYTHONPATH
    export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
    

想咨询是否遗漏了其他依赖包,或是存在其他未排查到的问题?


内容的提问来源于stack exchange,提问作者Thomas

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.22 23:11:01