我正在尝试在Oracle虚拟机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包解决了这个问题.
http://packages.ubuntu.com/utopic/amd64/libpython3.4-dev/filelist
如果遇到问题,请执行sudo apt-get install libpython3.4-dev.