/ Python

【 Solutions 】解決 _tkinter.TclError: no display name and no $DISPLAY environment variable

問題

因在終端下無 GUI 所造成的問題

---2020-04-14---1.20.51


解決方案

  • 將 matplotlib 設置為不使用 Xwindows
    echo "backend : Agg" > ~/.config/matplotlib/matplotlibrc
    

GitHub
List of blogs
Archer

Archer

Having being a software engineer. Experience with Python, JavaScript, Node.js, Objective-C, Micro:bit, Raspberry Pi, AWS, Azure, IoT. ❆ [email protected] https://oranwind.org/author/archer/

Read More