如何在Windows 10 conda上安装手电筒音频?

问题描述 投票:1回答:1

在安装了PyTorch的Anaconda Python 3.6.7中,在Windows 10上,我按照以下顺序执行:

conda install -c conda-forge librosa
conda install -c groakat sox

然后从https://github.com/pytorch/audio重新下载我做

python setup.py install

它会运行一段时间并以此结束:

torchaudio/torch_sox.cpp(3): fatal error C1083: Cannot open include file: 'sox.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

我试图在Windows上重现这个OpenNMT-py语音训练演示:http://opennmt.net/OpenNMT-py/speech2text.html

python windows pytorch sox opennmt
1个回答
1
投票

坏消息我很害怕:如果不付出巨大努力,你就不会在Windows上获得PyTorch Audio。问题在于libsox-dec是依赖关系之一。您可能已经安装了sox,但开发版本是一个完全不同的野兽。错误确实是抱怨丢失头文件。有一个ticket为Windows支持打开。

简而言之,将libsox构建为Windows的静态库非常困难。你可以试试cygwin的运气。或者使用Docker / VM。

© www.soinside.com 2019 - 2024. All rights reserved.