How to setup ffmpeg for discord.py on windows 10(如何在 Windows 10 上为 discord.py 设置 ffmpeg)
问题描述
我正在创建一个可播放音乐的 discord.py 机器人,但我在使用 FFMPEG 时遇到了问题.FFMPEG 下载在我的项目文件夹中,但它仍然说找不到.问题可能是我没有将它添加到 PATH 但我不知道该怎么做,所以如果有人可以帮助我让它工作,那就太好了!
I'm creating a discord.py bot that will play music and I'm having trouble using FFMPEG. The FFMPEG download is in my project folders but its still saying that it cant be found. The problem is probably that I havent added it to PATH but I dont know how to do that so if anyone could help me get it working that would be brilliant!
推荐答案
要将 FFMPEG 添加到路径,您需要:
To add FFMPEG to path, you're going to want to:
- 将路径复制到 FFMPEG 下载到的文件夹中的
in
. - 打开开始菜单并搜索编辑环境变量".
点击用户变量部分的
Path
:
点击
编辑...
:
点击
新建
:
- 粘贴到路径中(可能略有不同,取决于您保存它的位置 - 只需确保它以
in
结尾):
- 现在单击两个菜单中的
OK
以保存更改,您应该一切顺利!
- Now click
OK
in both menus to save your changes, and you should be good to go!
这篇关于如何在 Windows 10 上为 discord.py 设置 ffmpeg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 Windows 10 上为 discord.py 设置 ffmpeg


基础教程推荐
- 如何在海运重新绘制中自定义标题和y标签 2022-01-01
- 在 Python 中,如果我在一个“with"中返回.块,文件还会关闭吗? 2022-01-01
- 用于分类数据的跳跃记号标签 2022-01-01
- 如何让 python 脚本监听来自另一个脚本的输入 2022-01-01
- Dask.array.套用_沿_轴:由于额外的元素([1]),使用dask.array的每一行作为另一个函数的输入失败 2022-01-01
- 何时使用 os.name、sys.platform 或 platform.system? 2022-01-01
- 线程时出现 msgbox 错误,GUI 块 2022-01-01
- 使用PyInstaller后在Windows中打开可执行文件时出错 2022-01-01
- Python kivy 入口点 inflateRest2 无法定位 libpng16-16.dll 2022-01-01
- 筛选NumPy数组 2022-01-01