How to Solve Error: TclError: couldn‘t connect to display “localhost:11.0“
If there is
import matplotlib as mpl
Error will be reported when the server runs
The details are as follows:
couldn’t connect to display “localhost:11.0”
Solution:
mpl.use('Agg')
Read More:
- Failed to Connect NVIDIA Driver: NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver
- Couldn‘t create temporary archive name. [How to Solve]
- [Solved] NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver
- [Solved] NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver.
- Ubuntu: rabbitmq reports an error; Solution error: unable to connect to node rabbit@localhost : nodedown
- How to Fix xterm Xt error: Can’t open display: xterm: DISPLAY is not set
- How to open X Display on the server side (locally operable remote interface)
- [Solved] Win 10 VS Code Connect to the container of the server error: Cannot connect to the Docker daemon at … Is the docker daemon running
- [Solved] Xshelln Connect to Local VM linux Error: Could not connect to ‘XXX.168.122.1‘ (port 22): Connection failed
- SSH Connect Service Error: Could not connect to ‘xxx.xxx.xx.xx‘ (port 22): Connection failed.
- Set the cursor of Ubuntu terminal to turn on automatic display
- [Solved] Git Error: OpenSSL SSL_read: Connection was reset, errno 10054和Failed to connect to github.com port 443
- Ubuntu Startup Error: warning failed to connect to lvmetad,falling back to device scanning
- Linux Error: Failed to connect to ::1: No route to the host
- print(size_t) Format (You Need to Know)
- linux yum Error: PYCURL ERROR 6 – “Couldn’t resolve host ‘mirrorlist.centos.org’”
- [Solved] Failed to connect to 127.0.0.1 port XXXX: Connection refused
- [Solved] docker Error: System has not been booted with systemd as init system (PID 1). Can‘t operate. Failed to con
- [Solved] Ubuntu Error: Failed to connect to 127.0.0.1 port xxxxx: Connection refused
- [Solved] Error: connect ECONNREFUSED 127.0.0.1:6379 at TCPConnectWrap.afterConnect [as oncomplete]