为什么在Windows上安装discord.py时出现错误

时间:2020-10-11 03:58:50

标签: python pip discord discord.py

我想安装discord.py时,却出现了错误。

我在安装discord.py时使用了这段代码:pip install discord.py,这是我得到的错误 :Click_here_to_see_errors_i_got

1 个答案:

答案 0 :(得分:0)

在读取粘贴内容的底部时,它表示由于您缺少Microsoft Visual C ++ 14.0而未能编译<?php // If there are posts if ($posts_for_board_game) : // Loop the posts foreach ($posts_for_board_game as $board_game_post) : ?> <?php echo $board_game_post->post_title . '<br />'; ?> <?php endforeach; wp_reset_postdata(); ?> <?php endif; ?> 库:

需要Microsoft Visual C ++ 14.0或更高版本。用它 “ Microsoft C ++构建工具”: this

基于您的pastebin,您正在尝试在Python 3.9上安装discord.py。我不记得安装它时必须下载构建工具,我相信这是因为yarl依赖项https://visualstudio.microsoft.com/visual-cpp-build-tools/。我在Python 3.8上没有问题地安装了它。