pygame.error: No available video device

前端 未结 6 867
南方客
南方客 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:25

    Wild guess - is the DISPLAY environment variable set and/or required by the library, and not available? This could be the case if you're ssh-ing into the Linux machine you're running this on without providing the -X option.

提交回复
热议问题