pip install pygame - SDL.h file not found

后端 未结 2 966
清酒与你
清酒与你 2020-11-27 07:25

MacOS Sierra

➜  fun_python $ pip --version
pip 9.0.1 from /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (python 3.5)
<         


        
相关标签:
2条回答
  • 2020-11-27 08:17

    This helped solved the issue. Use sudo if necessary.

    brew install sdl sdl_image sdl_mixer sdl_ttf portmidi;
    pip3 install pygame;
    pip install pygame
    
    0 讨论(0)
  • 2020-11-27 08:22

    After following the brew install answer from @AKS, it also works with pipenv install pygame

    0 讨论(0)
提交回复
热议问题