question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Install on Windows, VS2015

See original GitHub issue

pip install on Windows, with VS 2015 halts with error:

C:\Program Files (x86)\Windows Kits\10\include\10.0.10150.0\ucrt\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rmaxcommented, Mar 24, 2017

The following PR address the windows builds in conda: https://github.com/conda-forge/python-crfsuite-feedstock/pull/4

1reaction
petermorlioncommented, Jan 25, 2017

As a workaround, this is what worked for me:

  • pull in the master of python-crfsuite (or a certain tag if that’s important for you)
  • make sure you pull in the submodules too
  • edit crfsuite/include/os.h and remove the line with #define snprintf _snprintf
  • now run pip install C:\users\whatever\path\to\python-crfsuite (effectively installing it from the locally cloned repository)

The workaround mentioned by @PMeira (adding a < 1900) didn’t work for me, even though I have VS2015 installed (which should map to MSC_VER 1900).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio 2015 System Requirements | Microsoft Learn
You can download Visual Studio 2015 from My.VisualStudio.com. My.VisualStudio.com requires a free Dev Essentials subscription, or a Visual ...
Read more >
Install Visual Studio | Microsoft Learn
Step 1 - Make sure your computer is ready for Visual Studio; Step 2 - Download Visual Studio; Step 3 - Install the...
Read more >
Visual Studio Older Downloads - 2019, 2017, 2015 & Previous ...
Download previous versions of Visual Studio Community, Professional, and Enterprise softwares. Sign into your Visual Studio (MSDN) ...
Read more >
Install Visual Studio versions side-by-side - Microsoft Learn
Run the following command, specifying a new folder path for the installation location and replacing the .exe file name with the appropriate ...
Read more >
Can't find Visual Studio 2015 on the Start menu - Microsoft Learn
Describes how to remove third-party applications that the Secondary Installer in Visual Studio 2015 setup lets users deploy to their computer.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found