In Windows 11 and Python 3.11.9, I ran cython 0.29.24 and 0.29.25 for a pyx file and got this fatal error: ‘longintrepr.h’: No such file or directory.
I did not see this problem when like 3 years ago with python 3.7.
The issue seemingly has been raised in many posts in the last two years.
One solution is the following page and says we can solve this by running setup.py build_cython.
https://groups.google.com/g/s3ql/c/Ldrll7KdXQE
But when I typed in ‘python setup.py build_cython, my python did not recognize build_cython.
Then here is another post (https://github.com/SpotlightKid/python-rtmidi/issues/115%EF%BC%89 suggesting pip install python-rtmidi. But when I typed in
pip install git+https://github.com/SpotlightKid/pythonrtmidi.git@eb16ab3268b29b94cd2baa6bfc777f5cf5f908ba#egg=python-rtmidi
my pip crashed.
Then there are people suggesting copying longintrepr.h to some folder.
I copied it to
C:\Users\username\AppData\Local\Programs\Python\Python311
But cython still yielded the same fatal error.
Can someone help?
You suggestions and solutions will be greatly appreciated.
I googled tens of pages and tried several suggestions and still could not get cython working as two years ago.
You need to sign in to view this answers
Leave feedback about this