Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal error C1083: Cannot open include file: 'io.h': No such file or directory

I'm trying to install a program from pip install SimPEGEM1D and I getting the error " fatal error C1083: Cannot open include file: 'io.h': No such file or directory" enter image description here I already have tried the suggestion from 'io.h': No such file or directory

but didn't work, I have visual studio 2017 and anaconda. I went to my directory and there is no io.h file there, so did I miss something when I installed visual studio? How do I fix that? enter image description here

like image 684
JCV Avatar asked Nov 30 '25 21:11

JCV


1 Answers

TL;DR: Update or reinstall Visual Studio https://visualstudio.microsoft.com/visual-cpp-build-tools/

I'm sure you've already solved this problem given the time discrepancy. However, I ran into this problem today and found my solution by reinstalling Visual Studio.

Visual Studio version that worked for me.

Error I was receiving:

h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory

Please note I also tried the following before reinstalling Visual Studio:

  1. Pip/Pip3
  2. Wheels
  3. Setuptools
  4. (verified Environment PATH/variables)

As of current Time and Date, you will be able to find the most up-to-date version of Visual Studio cpp-Build-Tools here:https://visualstudio.microsoft.com/visual-cpp-build-tools/

like image 98
Xammax Avatar answered Dec 03 '25 12:12

Xammax



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!