【问题标题】:discord.py[voice] installed with pip but not detecting in vs codediscord.py[voice] 安装了 pip 但在 vs 代码中没有检测到
【发布时间】:2018-08-12 19:48:40
【问题描述】:

在安装 vs code 之前,我已经安装了 discord.py 以在 vs code 中使用。我现在已经安装了 discord.py 的 [voice] 部分,但 vs code 无法识别它。我只是收到错误“模块'discord'中没有名称'voice'”和“无法导入'discord.voice'”。我在安装 vs code 之前安装了 discord.py,但在安装 vs code 之后安装了 discord.py[voice]。

【问题讨论】:

    标签: python python-3.x visual-studio-code discord.py discord.py-rewrite


    【解决方案1】:

    您不需要导入discord.voice

    如果您使用 pypi (pip install discord.py) 的 pip 安装了 discord.py,那么您已经安装了异步版本的库(不是标签中提到的重写)。

    Check examples of voice usagelibrary documentation

    【讨论】:

      猜你喜欢
      • 2021-07-18
      • 2018-12-22
      • 1970-01-01
      • 1970-01-01
      • 2021-08-18
      • 2020-09-01
      • 1970-01-01
      • 2020-11-28
      • 1970-01-01
      相关资源
      最近更新 更多