所以我在远程服务器上存储了一个Python程序(运行的是Ubuntu服务器18.04)。当我使用vncviewer远程控制服务器并在终端(在VNC会话中)运行python程序时,一切都很好。在
但是当我创建了一个SSH连接并尝试在本地机器上的终端窗口内运行同一个程序时,它将无法像我预期的那样工作。在
所以命令是这样的:
python3 main.py --train
错误就在这里:Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
(main.py:24109): Gdk-CRITICAL **: 09:45:07.931: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
(main.py:24109): Gdk-CRITICAL **: 09:45:07.932: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
tf.estimator package not installed.
Traceback (most recent call last):
File "main.py", line 8, in
from models import Model, DecoderType
File "/home/kop/handwriting/src/models.py", line 3, in
from md_lstm import multi_dimensional_rnn