What does Microsoft Visual Studio 10.0 \ VC \ include \ io.h provide?

I installed Visual Studio 2010 and gave me a C ++ compiler

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat

      

However, when I tried to create an application (Python package), I got the error

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\io.h

      

Upon investigation, that the folder is include

almost empty (only three files).

What Windows / Visual Studio bit do I need to set to populate the include folder?


What I am trying to do:

pip install lxml

      

What will happen

Building lxml version 3.3.5.
Building without Keaton.
C: \ Python34 \ include \ pyconfig.h (68): fatal error C1083: cannot open include file: 'io.h': no ​​such file or directory

+2


source to share


3 answers


Solution Install Visual Studio 2010 (any version) only installs 2 files in the C ++ Headers directory



  • Uninstall Visual Studio 2010.
  • Uninstall Visual Studio 2010 SP1 (despite the warning it gives).
  • Open Registry Editor ( regedit

    ).
  • Search for keys with a name PaddedVersion

  • Remove all parent keys VisualStudio\10.0\VC\Libraries

    or similar (note the version number 10.0

    that matches 2010

    ). Remove all of these registry paths. Finding a key PaddedVersion

    is just to make it easier to find.
  • Install Visual Studio 2010.
+2


source


In my case, it was a conflict between Visual Studio 2010 Express (installed long ago) and Visual C ++ Build Tools . io.h

was not available in C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include

, but was in C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include

(so it was probably missed when installing Build Tools). When I added C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin

in PATH

, it couldn't find io.h

.



BTW. I think all Visual Studio is not required, Visual C ++ Build Tools should work too.

+1


source


Visual C ++ Build Tools just works! Before I installed Visual Studio 2017 Community.Then I install Visual C ++ Build Tools 2015, it just works!

+1


source







All Articles