pygame.error: No available video device

前端 未结 6 1014
南方客
南方客 2020-12-11 04:11

I have this setup:

 $ python -V
Python 2.7.2+
 $ python -c \"import pygame; print pygame.__version__\"
1.9.1release

When I run a pygame scr

6条回答
  •  余生分开走
    2020-12-11 04:36

    This should work but comment if it doesn't. It might only affect Windows XP.

    import os
    os.environ['SDL_VIDEODRIVER']='windlib'
    

    Good luck. Hope this works.

提交回复
热议问题