如何修复 Ubuntu 上 Python 'ImportError: No module named wx'
问题:
你想运行 Python 脚本,例如 Pronterface,但你看到类似这样的错误消息:
wx_error.txt
wxPython 未安装。此程序需要 wxPython 才能运行。
Traceback (most recent call last):
File "./pronterface.py", line 23, in <module>
import wx # NOQA
ImportError: No module named wx解决方案
install-wx.sh
sudo apt install python-wxtoolsCheck out similar posts by category:
Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow