4

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

JCV
  • 447
  • 1
  • 5
  • 15
  • Possible duplicate of [Cython- Cannot open include file: 'io.h': No such file or directory](https://stackoverflow.com/questions/40018405/cython-cannot-open-include-file-io-h-no-such-file-or-directory) – hoefling Jan 03 '19 at 23:28

1 Answers1

1

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/

Dharman
  • 30,962
  • 25
  • 85
  • 135
Xammax
  • 138
  • 8