1
0

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 3 years have passed since last update.

VSCode で pygame.init() 実行時の「Module 'pygame' has no 'init' member」エラーを消す方法

Last updated at Posted at 2020-07-11

import pygameでエラーの消し方

VS Codeのsettings.jsonを開く。
開き方はVS CodeでCtrl + **,**で設定を開ける。設定からsettings.jsonって検索して編集するを押すと開ける。

settings.jsonの{}内に以下を追記する。

    "python.linting.pylintArgs": [
        "--extension-pkg-whitelist=pygame"
    ]

追記する直前の行に,(カンマ)が入っていないことがあるので注意

参考

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?