2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

discord.pyのエラー

Last updated at Posted at 2022-09-08

pythonのdiscord.pyのアップデートをした際になるバグの直し方について

先日 ウイルスにかかってしまい pcのデータをバックアップした後に初期化したのですが
初期化後 pythonを再インストール+discord.pyなどのモジュールを入れ 起動しようとした際にエラーが出ました
そのエラーがこれです
unknown.png
色々調べたのですが直し方が出なく困っていましたがいろいろ試行錯誤していたら治りましたので 直し方を解説します

step1

windowsの設定からpythonをアンインストール
(もしかしたらpythonのバージョンは関係ないかもしれません)

step2

python 3.10の最新版をダウンロード
python 3.10のインストール

step3

コマンドプロンプトで
pip install discord.py==1.7.0

あとがき

基本的にこれで動くようになるはずです
自分はpythonを再インストールしたのですが もしかしたら
pip uninstall discord.py
の後にstep3をやったらいけるかもしれません
治らなかったらすいません

2
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?