python - Not installing pygame in pycharm

Solution:

To fix this you will have to:

  1. Install Homebrew (/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" )
  2. And then via the terminal type brew install sdl
  3. Go back to PyCharm and try installing it

Answer

Solution:

  1. Open pycharm

  2. click on File -> settings -> project -> project interpreter -> click on "+" -> search "pygame" on search bar -> install package

    Try it

Source