[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

模块就安装进了

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

相关推荐
GoCodingInMyWay7 小时前
PaddleOCR 开始
pytorch·ai·ocr
FriendshipT1 天前
ComfyUI 使用 MiniMax H3 进行文生视频
人工智能·pytorch·python·深度学习·音视频
天疆说2 天前
Ubuntu 26.04 下 Intel Meteor Lake 核显 + NPU 驱动配置与 PyTorch NPU 推理实测
linux·pytorch·ubuntu
程序猿编码2 天前
不用PyTorch,不用CUDA,我用C++手写了一个能跑GPT和Whisper的推理库
c++·pytorch·gpt·大模型·whisper
zhangfeng11332 天前
Windows AMD显卡跑PyTorch
人工智能·pytorch·windows
Eloudy3 天前
一键构建 pytorch cpp lib 前端和 wheel
人工智能·pytorch·gpu
FriendshipT3 天前
Ultralytics:解读 YOLO26 知识蒸馏
人工智能·pytorch·python·深度学习·yolo
一碗白开水一4 天前
入门实践工程十:PyTorch 模型量化与 ONNX 导出~附:安装依赖库及工程源码
人工智能·pytorch·python·rnn·深度学习·机器学习
hhzz4 天前
《深度学习框架PyTorch入门与实践》系列:04-nn模块详解:用积木搭建神经网络
pytorch·深度学习·神经网络
阳光开朗男孩4 天前
Pytorch的安装与配置
人工智能·pytorch·python