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

查看:30
本文介绍了如何在 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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