close

[Solved] Cannot open include file: ‘io.h’: No such file or directory

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Cannot open include file: ‘io.h’: No such file or directory in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Cannot open include file: ‘io.h’: No such file or directory Error Occurs?

Today I get the following error Cannot open include file: ‘io.h’: No such file or directory in python.

How To Solve Cannot open include file: ‘io.h’: No such file or directory Error ?

  1. How To Solve Cannot open include file: 'io.h': No such file or directory Error ?

    To Solve Cannot open include file: 'io.h': No such file or directory Error I received the same error when trying to install pyshark and I resolved this issue by running pip install pyshark in Developer Command Prompty for VS 2017 and making sure I had VC++ tools installed.

  2. Cannot open include file: 'io.h': No such file or directory

    To Solve Cannot open include file: 'io.h': No such file or directory Error I received the same error when trying to install pyshark and I resolved this issue by running pip install pyshark in Developer Command Prompty for VS 2017 and making sure I had VC++ tools installed.

Solution 1

In case anyone finds this thread and is looking for a quicker solution than reinstalling VS and/or Anaconda – I was able to get past this same error by defining the environment variable INCLUDE pointing to the location of io.h – allowing the VS compiler to locate the header.

In my setup, using VS2015, the change to using the Universal CRT means the location of io.h is C:\Program Files (x86)\Windows Kits\10\Include\<version>\ucrt. For different versions/environments the location of io.h may differ.

Solution 2

I received the same error when trying to install pyshark and I resolved this issue by running pip install pyshark in Developer Command Prompty for VS 2017 and making sure I had VC++ tools installed.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read