问题描述
当我尝试在pycharm中安装pygame时出现此错误,请帮助我help me
解决方法
要解决此问题,您将必须:
- 安装Homebrew(
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
)
- 然后通过终端输入
brew install sdl
- 回到PyCharm并尝试安装
,
-
打开pycharm
-
单击文件->设置->项目->项目解释器->单击“ +”
->在搜索栏上搜索“ pygame”->安装软件包
尝试