Python Pydub 权限被拒绝? [英] Python Pydub Permission denied?

查看:27
本文介绍了Python Pydub 权限被拒绝?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行此代码时:

from pydub import AudioSegment
sound = AudioSegment.from_mp3("i.mp3")
sound.export("F:\\bh", format="wav")

一个 ffmpeg 窗口弹出,我收到这个错误:

即使我使用管理员权限运行它:

Even if i run it with admin privilleges:

注意:
错误发生在我尝试导出的每个位置

Note :
The error occurs on every location that I try to export

推荐答案

如果你在 Windows 上遇到这个问题,并且在安装 simpleaudio 时也有问题,你可以尝试安装 pyaudio 代替.

If you are on Windows, face this problem, and also have issues installing simpleaudio, you can try installing pyaudio instead.

如果你使用的是 Anaconda,你可以用

If you are using Anaconda, you can install pyaudio with

conda install -c anaconda pyaudio

对我来说,Anaconda 上的 simpleaudio 仅适用于 Linux 和 MacOS,不适用于 Windows.

For me, simpleaudio on Anaconda is only available for Linux and MacOS and not Windows.

这篇关于Python Pydub 权限被拒绝?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆