Ubuntu Pyinstaller:path或glob"/usr/include/python3.4m/pyconfig.h“;找不到或不匹配任何文件。”;

Ubuntu Pyinstaller:path或glob"/usr/include/python3.4m/pyconfig.h“;找不到或不匹配任何文件。”;,ubuntu,python-3.x,pyinstaller,Ubuntu,Python 3.x,Pyinstaller,我试图在Oracle virtualbox ubuntu 14.04.2 LTS上构建我的项目 我的项目是Python 34。我通过以下方式安装了pyinstaller: pip install https://github.com/pyinstaller/pyinstaller/archive/python3.zip 当我运行pyinstaller run.py时,出现以下错误: FileNotFoundError: Path or glob "/usr/include/python3.4m

我试图在Oracle virtualbox ubuntu 14.04.2 LTS上构建我的项目

我的项目是Python 34。我通过以下方式安装了pyinstaller:

pip install https://github.com/pyinstaller/pyinstaller/archive/python3.zip
当我运行
pyinstaller run.py
时,出现以下错误:

FileNotFoundError: Path or glob "/usr/include/python3.4m/pyconfig.h" not found or matches no files.
我确实没有目录'/usr/include/python3.4m',只有'usr/include/python2.7'。Python 34已安装(默认情况下在Ubuntu中)


如何让它工作?

显然,安装
libpython3.4-dev
包解决了这个问题。


因此,如果遇到问题,请执行
sudo-apt-get-install-libpython3.4-dev

我的错误与此类似,执行
sudo-apt-get-install-libpython2.7-dev
就成功了。谢谢