没有在pycharm中安装pygame

问题描述

当我尝试在pycharm中安装pygame时出现此错误,请帮助我help me

解决方法

要解决此问题,您将必须:

  1. 安装Homebrew/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  2. 然后通过终端输入brew install sdl
  3. 回到PyCharm并尝试安装
,
  1. 打开pycharm

  2. 单击文件->设置->项目->项目解释器->单击“ +” ->在搜索栏上搜索“ pygame”->安装软件包

    尝试