N
N
Nikolai Savelyev2018-05-10 19:07:50
Python
Nikolai Savelyev, 2018-05-10 19:07:50

How to build multicorn with python version 3?

I have debian 8 with python 2.7 and python 3.4
installed Python 3 is installed by default via update-alternatives --install /usr/bin/python python /usr/bin/python3.4
Need to build multicorn https://github.com/Kozea/ Multicorn c 3 python.
When I do make, it detects that python 2.7 is installed and says:

src/multicorn.h:1:20: fatal error: Python.h: No such file or directory
 #include "Python.h"

What does the absence of the python-dev package on the system mean.
But the system has python3-dev installed! And it is with him that I want to assemble the package.
Is there something that needs to be changed in the Makefile?
Not strong in the assembly, and google does not work.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-05-10
@dimonchik2013

python 2.7 or >= python 3.3 as your default python
there are systems where the default is already the third
where it is the second - replacing with the third is risky for performance

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question