A
A
Artem Imaev2021-08-26 13:12:11
Python
Artem Imaev, 2021-08-26 13:12:11

Cython how to compile and use?

I can't compile cython programs (according to the documentation):
612761ad0483a318987599.png
only .c code comes out, what should I do with it? compile in VS 2019 fails - requires python.h and so on
trying to find in VS 2019 cl.exe for PATH resulted in: Hostx64 and...61276718c939b833598030.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem Imaev, 2022-03-06
@AIRC24

Problem in visual studio

S
Sergey Gornostaev, 2021-08-26
@sergey-gornostaev

Cython is a translator, it only translates python code into sish code. Next, you must use a C compiler to compile to a binary. This requires at least basic knowledge of C and the ability to use its tools. Ideally, you should know well both the language and the principles of the Python virtual machine. Simply put, don't expect Cython to simply compile Python code into binaries.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question