Skip to content

fatal error: Python.h File missing during setup #31

Open

Description

@mgritz

There seems to be a glitch in the installer of master, 6a74da7
When running sudo python3 setup.py install I get

Processing diff_match_patch_python-1.0.2.tar.gz
Writing /tmp/easy_install-ifsfz1nn/diff_match_patch_python-1.0.2/setup.cfg
Running diff_match_patch_python-1.0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ifsfz1nn/diff_match_patch_python-1.0.2/egg-dist-tmp-1dq3j8ko
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
interface.cpp:1:10: fatal error: Python.h: File or directory not found
 #include <Python.h>
          ^~~~~~~~~~
compilation terminated.
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I am running an almost virgin Ubuntu 17.10, Kernel Version 4.13.0-37-generic on an x86 and did an sudo apt-get install python3-lxml poppler-utils beforehands.

I'll be looking into that as soon as I got time for it but if you know any releief I'd be glad to hear about it.
Thanks and have a nice weekend!

Activity

  1. JoshData commented on Mar 25, 2018

    @JoshData
    Owner

    Try sudo apt-get install python3-dev?

  2. Bilb commented on Nov 28, 2018

    @Bilb

    It does work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions