【问题标题】:Pyinstaller: path or glob "/usr/include/python3.4m/pyconfig.h" not found or matches no files."Pyinstaller:找不到路径或全局“/usr/include/python3.4m/pyconfig.h”或不匹配任何文件。”
【发布时间】:2015-08-02 20:35:16
【问题描述】:

我正在尝试在 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 中)。

我怎样才能让它工作?

【问题讨论】:

    标签: ubuntu python-3.x pyinstaller


    【解决方案1】:

    显然安装libpython3.4-dev 包解决了这个问题。 http://packages.ubuntu.com/utopic/amd64/libpython3.4-dev/filelist

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

    【讨论】:

    • 我的错误是类似的,执行sudo apt-get install libpython2.7-dev 就可以了。谢谢。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-07
    • 2014-11-24
    • 2013-12-05
    • 2012-07-26
    相关资源
    最近更新 更多