728x90
/opt/conda/lib/python3.8/site-packages/pyglet/canvas/xlib.py in __init__(self, name, x_screen)
121 self._display = xlib.XOpenDisplay(name)
122 if not self._display:
--> 123 raise NoSuchDisplayException('Cannot connect to "%s"' % name)
124
125 screen_count = xlib.XScreenCount(self._display)
NoSuchDisplayException: Cannot connect to "None"
sudo apt install xvfb
sudo apt install ffmpeg
pip3 install pyvirtualdisplay
https://stackoverflow.com/questions/40195740/how-to-run-openai-gym-render-over-a-server
'꿀팁 분석 환경 설정 > Python' 카테고리의 다른 글
tqdm, clear_output 같이 사용하는 방법 (0) | 2021.10.05 |
---|---|
git add 시 파일 취소 방법 (0) | 2021.09.10 |
Error occurred while running `from pyglet.gl import *` 해결하기 (0) | 2021.09.08 |
python) pip freeze에서 패키지 버전을 안보여주는 경우 (0) | 2021.09.06 |
vscode) line length 늘리기 (0) | 2021.09.05 |