[windows]torchsig 1.1.0 gr-spectrumdetect模块安装

问题

按照提供的readme

bash 复制代码
git clone https://github.com/TorchDSP/torchsig.git
cd torchsig
pip install .
cd gr-spectrumdetect
mkdir build
cd build
cmake ../
make install
cd ../examples/
bash trained_model_download.sh
gnuradio-companion example.grc &

安装总是出错,cmake ../这步一直make不了

报找不到gmp mpir模块。

解决

首先torchsig的环境安装好,

然后环境重新安装cmake、gnuradio, 还有boost、pkg-config

安装后就可以cmake ../通过,避免工程路径里包含中文

bash 复制代码
mkdir build
cd build
cmake ..

然后看一下gnuradio的路径 gnuradio-config-info --prefix

得到 <gnuradio_prefix>

bash 复制代码
gnuradio-config-info --prefsdir

这里的 prefsdir 下面应该有模块 .xml/.yml 文件。

接着指定前缀

bash 复制代码
cmake .. -DCMAKE_INSTALL_PREFIX=<gnuradio_prefix>

然后安装

bash 复制代码
cmake --build build --config Release
cmake --install build --config Release

模块就安装进了

然后就是正常的运行其他的代码

相关推荐
爱喝可乐的老王1 天前
PyTorch简介与安装
人工智能·pytorch·python
deephub1 天前
用 PyTorch 实现 LLM-JEPA:不预测 token,预测嵌入
人工智能·pytorch·python·深度学习·大语言模型
工程师老罗1 天前
Pytorch如何验证模型?
人工智能·pytorch·深度学习
大模型玩家七七1 天前
证据不足 vs 证据冲突:哪个对模型更致命
数据库·人工智能·pytorch·深度学习·安全
weixin_395448912 天前
export_onnx.py_0130
pytorch·python·深度学习
工程师老罗2 天前
反向传播及其用法
pytorch
抠头专注python环境配置2 天前
基于Pytorch ResNet50 的珍稀野生动物识别系统(Python源码 + PyQt5 + 数据集)
pytorch·python
永恒的溪流2 天前
环境出问题,再修改
pytorch·python·深度学习
工程师老罗2 天前
Pytorch中的优化器及其用法
人工智能·pytorch·python
m0_462605222 天前
第G4周:CGAN|生成手势图像 | 可控制生成
pytorch