在ubuntu中输入sudo apt-get install protobuf-compiler python-pil python-lxml python-tk 解决方法:sudo apt-get update 待更新完毕后再次输入安装命令即可