import pygame
from pygame import *
Why is there an error shown, but i have installed pygame 3 times!
Take pip show pygame
in the terminal to get where you have installed the pygame
.
Then check which python interpreter you have selected from the bottom-right on the VSCode.
If it does not match, click the python interpreter
to switch the python interpreter.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.