Ubuntn 如何安装pip3和pygame(如何在python3中安装pygame)

1.首先安装pip3,输入pip3后会提示安装命令

sudo apt install python3-pip

2.然后安装pygame

sudo pip3 install pygame

3.验证pygame是否安装成功

python3 -m  pygame.examples.aliens

      -m  当作模块来启动,import

猜你喜欢

转载自blog.csdn.net/yuhu1023/article/details/85029187