markdown pyplot _tkinter.TclError:没有显示名称,没有$ DISPLAY环境变量

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown pyplot _tkinter.TclError:没有显示名称,没有$ DISPLAY环境变量相关的知识,希望对你有一定的参考价值。

# Introducción

Vamos a arreglar un error visual que se da, al menos, en raspberry pi
con pyplot. No permite la correcta generación de la gráfica.

## El error

```
_tkinter.TclError: no display name and no $DISPLAY environment variable
```

## La solución

Puedes ver la respuesta original en
[este enlace](https://github.com/enigmampc/catalyst/issues/39#issuecomment-336668687)

```shell
echo "backend: Agg" > ~/.config/matplotlib/matplotlibrc
```

以上是关于markdown pyplot _tkinter.TclError:没有显示名称,没有$ DISPLAY环境变量的主要内容,如果未能解决你的问题,请参考以下文章