安装discord.py时出错,说我需要VS构建工具

问题描述 投票:0回答:1

即使我安装了 VS 构建工具,我仍然收到此错误!我不知道该怎么办,因为我已经安装了 VS 构建工具。我已经尝试了一切可能的方法。在 VS Code 和其他所有内容中执行此操作。我四处搜寻无果。我现在该怎么办?

      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for multidict
Failed to build multidict
ERROR: Could not build wheels for multidict, which is required to install pyproject.toml-based projects

python discord.py
1个回答
0
投票

嗨。 在错误中,您可以看到它显示 error: Microsoft Visual C++ 14.0 或更高版本是必需的。使用“Microsoft C++ 构建工具”获取它 而且可以看到前面有一个下载更高版本的链接这个链接

另一个解决方案是更新 pip。

python -m pip install --upgrade pip

或者更新你的方向盘

python -m pip install --upgrade wheel
© www.soinside.com 2019 - 2024. All rights reserved.