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


- 我如何透明地重定向一个Python导入? 2022-01-01
- CTR 中的 AES 如何用于 Python 和 PyCrypto? 2022-01-01
- 检查具有纬度和经度的地理点是否在 shapefile 中 2022-01-01
- ";find_element_by_name(';name';)";和&QOOT;FIND_ELEMENT(BY NAME,';NAME';)";之间有什么区别? 2022-01-01
- 使用公司代理使Python3.x Slack(松弛客户端) 2022-01-01
- 如何使用PYSPARK从Spark获得批次行 2022-01-01
- YouTube API v3 返回截断的观看记录 2022-01-01
- 计算测试数量的Python单元测试 2022-01-01
- 使用 Cython 将 Python 链接到共享库 2022-01-01
- 我如何卸载 PyTorch? 2022-01-01