Skip to content

Fatal error C1083: Cannot open include file: 'io.h': No such file or directory #665

Open
@ceci3095

Description

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

I use Miniforge 3 on my Windows 11. I am working in a environment that I created with conda activate myenv and then I installed conda install python spyder-kernels=3

I'm trying to install gdal with
pip install gdal
but I have this error
C:\Users\...\miniforge3\envs\disp_profiles\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory.

If I go to the directory C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt the file is there

I just installed Visual studio build tools 2022 with

  • Visual C++ Build tools core features.
  • MSVC toolset C++ 2022 v143 (x86,x64)
  • Visual C++ 2019 Redistributable Update
  • C++ core desktop feautures
  • Windows 11 SDK (10.0.22621.0) for Desktop C++
  • C++ CMake toold for Windows
  • Testing tools
  • C++ ATL for latest v143

Plus, I tried to add the path in the environment variables but nothing...

What should I do? I'm fairly new to Python

Thanks

Installed packages

asgiref                   3.8.1                    pypi_0    pypi
asttokens                 2.0.5              pyhd3eb1b0_0
bzip2                     1.0.8                h2bbff1b_6
ca-certificates           2024.9.24            haa95532_0
certifi                   2024.8.30                pypi_0    pypi
cloudpickle               3.0.0           py312haa95532_0
colorama                  0.4.6           py312haa95532_0
comm                      0.2.1           py312haa95532_0
contourpy                 1.3.0                    pypi_0    pypi
cycler                    0.12.1                   pypi_0    pypi
debugpy                   1.6.7           py312hd77b12b_0
decorator                 5.1.1              pyhd3eb1b0_0
django                    5.1.2                    pypi_0    pypi
executing                 0.8.3              pyhd3eb1b0_0
expat                     2.6.3                h5da7b33_0
fonttools                 4.54.1                   pypi_0    pypi
geopandas                 1.0.1                    pypi_0    pypi
ipykernel                 6.29.5          py312haa95532_0
ipython                   8.27.0          py312haa95532_0
jedi                      0.19.1          py312haa95532_0
jupyter_client            8.6.0           py312haa95532_0
jupyter_core              5.7.2           py312haa95532_0
kiwisolver                1.4.7                    pypi_0    pypi
libffi                    3.4.4                hd77b12b_1
libsodium                 1.0.18               h62dcd97_0
matplotlib                3.9.2                    pypi_0    pypi
matplotlib-inline         0.1.6           py312haa95532_0
nest-asyncio              1.6.0           py312haa95532_0
numpy                     2.1.2                    pypi_0    pypi
openssl                   3.0.15               h827c3e9_0
packaging                 24.1            py312haa95532_0
pandas                    2.2.3                    pypi_0    pypi
parso                     0.8.3              pyhd3eb1b0_0
pillow                    11.0.0                   pypi_0    pypi
pip                       24.2            py312haa95532_0
platformdirs              3.10.0          py312haa95532_0
prompt-toolkit            3.0.43          py312haa95532_0
prompt_toolkit            3.0.43               hd3eb1b0_0
psutil                    5.9.0           py312h2bbff1b_0
pure_eval                 0.2.2              pyhd3eb1b0_0
pygments                  2.15.1          py312haa95532_1
pyogrio                   0.10.0                   pypi_0    pypi
pyparsing                 3.2.0                    pypi_0    pypi
pyproj                    3.7.0                    pypi_0    pypi
python                    3.12.7               h14ffc60_0
python-dateutil           2.9.0post0      py312haa95532_2
pytz                      2024.2                   pypi_0    pypi
pywin32                   305             py312h2bbff1b_0
pyzmq                     25.1.2          py312hd77b12b_0
setuptools                75.1.0          py312haa95532_0
shapely                   2.0.6                    pypi_0    pypi
simplekml                 1.3.6                    pypi_0    pypi
six                       1.16.0             pyhd3eb1b0_1
spyder-kernels            3.0.0           py312hfc267ef_0
sqlite                    3.45.3               h2bbff1b_0
sqlparse                  0.5.1                    pypi_0    pypi
stack_data                0.2.0              pyhd3eb1b0_0
tk                        8.6.14               h0416ee5_0
tornado                   6.4.1           py312h827c3e9_0
traitlets                 5.14.3          py312haa95532_0
tzdata                    2024.2                   pypi_0    pypi
vc                        14.40                h2eaa2aa_1
vs2015_runtime            14.40.33807          h98bb1dd_1
wcwidth                   0.2.5              pyhd3eb1b0_0
wheel                     0.44.0          py312haa95532_0
xz                        5.4.6                h8cc25b3_1
zeromq                    4.3.5                hd77b12b_0
zlib                      1.2.13               h8cc25b3_1

Environment info

 active environment : disp_profiles
    active env location : C:\Users\...\miniforge3\envs\disp_profiles
            shell level : 2
       user config file : C:\Users\...\.condarc
 populated config files : C:\Users\...\miniforge3\.condarc
                          C:\Users\...\.condarc
          conda version : 24.9.2
    conda-build version : not installed
         python version : 3.10.14.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=skylake
                          __conda=24.9.2=0
                          __cuda=12.5=0
                          __win=0=0
       base environment : C:\Users\...\miniforge3  (writable)
      conda av data dir : C:\Users\...\miniforge3\etc\conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
                          https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : C:\Users\...\miniforge3\pkgs
                          C:\Users\...\.conda\pkgs
                          C:\Users\...\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\...\miniforge3\envs
                          C:\Users\...\.conda\envs
                          C:\Users\...\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/24.9.2 requests/2.31.0 CPython/3.10.14 Windows/10 Windows/10.0.22631 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8
          administrator : False
             netrc file : None
           offline mode : False

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions