问题
(venv3) ubuntu@ubuntu-nvidia:~/proj/pythontest$ /home/ubuntu/proj/pythontest/venv3/bin/python /home/ubuntu/proj/pythontest/main.py
/home/ubuntu/proj/pythontest/main.py:39: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
plt.pause(.001)
UI 没有显示
原因
没有安装python-tk
解决方法
sudo apt install python-tk
或者
pip install tk
网友评论