我试图在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
软件包可以解决该问题。http://packages.ubuntu.com/utopic/amd64/libpython3.4-dev/filelist
sudo apt-get install libpython3.4-dev
如果遇到问题,也可以这样做。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句