Why does it say that module pygame has no init member?

前端 未结 14 1186
予麋鹿
予麋鹿 2020-12-01 13:57

This is the code I have:

import pygame
pygame.init()

I\'m very confused because if I try to run the file, then there seems to be no issue,

14条回答
  •  一整个雨季
    2020-12-01 14:22

    If you are using vscode then you can go to settings:

    python.linting.pylintEnabled = False
    

    It will fix the problem. If you aren't using vscode then you can go the command prompt and manually uninstall pylint with the command

    pip uninstall pylint. 
    

提交回复
热议问题