[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

模块就安装进了

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

相关推荐
哈__19 分钟前
CANN内存管理与资源优化
人工智能·pytorch
DeniuHe2 小时前
Pytorch中的直方图
pytorch
哈__2 小时前
CANN多模型并发部署方案
人工智能·pytorch
DeniuHe3 小时前
Pytorch中的众数
人工智能·pytorch·python
DeniuHe13 小时前
torch.distribution函数详解
pytorch
退休钓鱼选手16 小时前
[ Pytorch教程 ] 神经网络的基本骨架 torch.nn -Neural Network
pytorch·深度学习·神经网络
DeniuHe17 小时前
用 PyTorch 库创建了一个随机张量,并演示了多种张量取整和分解操作
pytorch
Network_Engineer21 小时前
从零手写LSTM:从门控原理到PyTorch源码级实现
人工智能·pytorch·lstm
多恩Stone1 天前
【3D-AICG 系列-1】Trellis v1 和 Trellis v2 的区别和改进
人工智能·pytorch·python·算法·3d·aigc
2501_901147831 天前
PyTorch DDP官方文档学习笔记(核心干货版)
pytorch·笔记·学习·算法·面试