如何在Windows 10上为Discord.py设置ffmpeg [英] How to setup ffmpeg for discord.py on windows 10

查看:87
本文介绍了如何在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:


  • 将路径复制到 \bin 在下载FFMPEG的文件夹中。

  • 打开开始菜单,然后搜索编辑环境变量。

  • 在用户变量部分中单击路径

  • Copy the path to \bin in the folder that FFMPEG was downloaded to.
  • Open the start menu and search for "Edit environment varaibles".
  • Click Path in the User Variables section:


  • 单击编辑...


  • 单击新建


  • 粘贴在路径中(可能会略有不同,取决于您将其保存在哪里-只需确保它以 \bin 结尾):

  • Paste in the path (might be slightly different, depends where you saved it - just make sure it ends with \bin):


  • 现在在两个菜单中单击确定保存更改,那么您应该一切顺利!

  • Now click OK in both menus to save your changes, and you should be good to go!

这篇关于如何在Windows 10上为Discord.py设置ffmpeg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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