[英]Can't open file 'audioAnalysis.py': [Errno 2] No such file or directory
I'm trying to store MFCC feartures of an audio file to a csv file.我正在尝试将音频文件的 MFCC 特征存储到 csv 文件中。 I'm following the wiki on github for Feature Extraction using pyAudioAnalysis .
我正在关注 github 上的wiki,使用 pyAudioAnalysis进行特征提取。 The suggested command is:
建议的命令是:
python3 audioAnalysis.py featureExtractionFile -i test.wav -mw 1.0 -ms 1.0 -sw 0.050 -ss 0.050 -o data/speech_music_sample.wav
I'm using the command with minor changing ie, I'm using python in command as I have only python-3 installed on my PC.我正在使用稍作更改的命令,即我在命令中使用 python,因为我的 PC 上只安装了 python-3。
I'm getting an Error:我收到一个错误:
C:\Users\myusername\AppData\Local\Programs\Python\Python37\python.exe: can't open file 'audioAnalysis.py': [Errno 2] No such file or directory
C:\Users\myusername\AppData\Local\Programs\Python\Python37\python.exe: 无法打开文件 'audioAnalysis.py': [Errno 2] 没有这样的文件或目录
Please Help!请帮忙!
The error is clear错误很明显
[Errno 2] No such file or directory
[Errno 2] 没有这样的文件或目录
that the file doesn't exist in your CWD
or is not set in path.该文件在您的
CWD
中不存在或未在路径中设置。 I am assuming that you haven't added your file to the path.我假设您尚未将文件添加到路径中。
So simply add it to PATH on Windows
.因此,只需将其添加到
Windows
上的PATH即可。 After that you can try:之后,您可以尝试:
python `C:/pathToFolder/prog.py`
or go to the files directory and execute:或 go 到文件目录并执行:
python prog.py
You can also provide a full absolute path to execute it, eg您还可以提供完整的绝对路径来执行它,例如
python3 <FullAbsolutePath/audioAnalysis.py> featureExtractionFile -i test.wav -mw 1.0 -ms 1.0 -sw 0.050 -ss 0.050 -o data/speech_music_sample.wav
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.