Problem with compiling for Python 3.5 under Windows 10 x64
See original GitHub issueI had a problem when tried to compile this library. The problem was the following:
Compiler said thet the following definitions from python-crfsuite/crfsuite/include/os.h conflict with such definitions from system <math.h>:
#define isfinite _finite
#define snprintf _snprintf
I changed them to the following:
#define my_isfinite _finite
#define my_snprintf _snprintf
And also fixed all places in the library where these definitions are used, and then everything compiled perfectly.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
How to fix pip for Python 3.5 not compiling extensions on ...
For 3.5 you need Visual C++ 14.0. Download the Community edition. cl.exe will be in: C:\Program Files (x86)\Microsoft Visual Studio ...
Read more >Struggling to build Python on Windows 10 - Core Workflow
I am using the following hardware and software versions: Microsoft Windows 10 Home, Version 10.0. 19043 Build 19043. A x64-based PC.
Read more >4. Using Python on Windows — Python 3.11.1 documentation
Python Launcher for Windows. New in version 3.3. The Python launcher for Windows is a utility which aids in locating and executing of...
Read more >precompiling stdlib fails with missing DLL errors - Python tracker
I installed Python 3.5 on a Windows Server 2012 VM, twice (once the 32-bit, and once the 64-bit version). When it started throwing...
Read more >Ctypes callbacks shows problem on Windows Python (64bit)
Note: everything works fine with 32bit Python on Windows and on 32bit ... ctypes.sizeof(callback_t) matches the one given by the C compiler.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also prepared the wheel: python_crfsuite-0.9.1-cp35-none-win_amd64.whl.zip
As a work around a manual build and install can be done (with git and Visual Studio 2014/2015 installed):
Tested on Windows 10 Python 3.6 x64