-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python.h not found #4274
Comments
Try |
This isn't exactly correct. What you want is this
Though, when I read it again I realized that since you get |
yeah, tried it again, now it spits out gcc: error: no such file or directory: ' -L/data/data/com.termux/files/usr/lib -lpython3.12 -ldl -lpthread -lm ' |
If you get that error you've likely put quotes around the second And I see now that putting quotes around the first |
there are no quotes, i copypasta'd what you sent |
Try running the python-config commands separately and insert them into the gcc command manually. On my phone And So that ends up being:
|
Thank you, this seems to have worked |
Problem description
I generated a C file from Python 3.12 using Cython:
I ran GCC with these flags:
But I keep getting the error:
Here is an image:
Steps to reproduce the behavior.
Generate an embedded python C file with cython:
Run GCC with, from my understanding, the appropriate flags:
What is the expected behavior?
The file
tets.c
compiles into an executable binary file.System information
0.118.1 (according to app info(
10
Samsung galaxy S9
The text was updated successfully, but these errors were encountered: