[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

模块就安装进了

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

相关推荐
小五12716 小时前
pytorch
人工智能·pytorch·深度学习
wjt10202017 小时前
PyTorch 神经网络工具箱
人工智能·pytorch·神经网络
shuououo17 小时前
PyTorch 神经网络构建与训练笔记
pytorch·笔记·神经网络
fayuan06961 天前
一、Pytorch安装教程-windows环境,利用Anaconda搭建虚拟环境,Pycharm开发工具
人工智能·pytorch·pycharm·conda
incidite1 天前
PyTorch 核心知识手册:神经网络构建与训练基础
人工智能·pytorch·神经网络
西猫雷婶1 天前
python学智能算法(三十八)|使用Numpy和PyTorch模块绘制正态分布函数图
pytorch·python·numpy
缘友一世1 天前
PyTorch深度学习实战【11】之神经网络的学习和训练
pytorch·深度学习·神经网络
麒羽7601 天前
PyTorch 神经网络工具箱核心知识梳理
人工智能·pytorch·神经网络
我不是QI1 天前
《从零到精通:PyTorch (GPU 加速版) 完整安装指南
人工智能·pytorch·python·程序人生·gpu算力