'How to fix import error in python program?

I am getting error when import any python library or module.

the following error shown by IDE:

  from pygame.base import * # pylint: disable=wildcard-import; lgtm[py/polluting-import]
  Import error: DLL load failed while importing base: The specified procedure could not be found 

Additional information: python version = 3.9



Solution 1:[1]

sudo apt-get install python3-pygame

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1