ubuntu – Pyinstaller:路径或glob“/usr/include/python3.4m/pyconfi

我正在尝试在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.

dawei

【声明】:淮南站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。