How can I reduce the error during the installation of the setup in python 3.9.?

  c++, python, python-3.x, windows
Requirement already satisfied: matplotlib in c:usersyogwsappdatalocalprogramspythonpython39libsite-packages (from oommfpy==1.0a0) (3.4.2)
Requirement already satisfied: numpy in c:usersyogwsappdatalocalprogramspythonpython39libsite-packages (from oommfpy==1.0a0) (1.20.3)
Requirement already satisfied: click in c:usersyogwsappdatalocalprogramspythonpython39libsite-packages (from oommfpy==1.0a0) (8.0.1)
Requirement already satisfied: cython in c:usersyogwsappdatalocalprogramspythonpython39libsite-packages (from oommfpy==1.0a0) (0.29.23)
Requirement already satisfied: colorama in c:usersyogwsappdatalocalprogramspythonpython39libsite-packages (from click->oommfpy==1.0a0) (0.4.4)
Requirement already satisfied: python-dateutil>=2.7 in c:usersyogwsappdatalocalprogramspythonpython39libsite-packages (from matplotlib->oommfpy==1.0a0) (2.8.1)
Requirement already satisfied: kiwisolver>=1.0.1 in c:usersyogwsappdatalocalprogramspythonpython39libsite-packages (from matplotlib->oommfpy==1.0a0) (1.3.1)
Requirement already satisfied: cycler>=0.10 in c:usersyogwsappdatalocalprogramspythonpython39libsite-packages (from matplotlib->oommfpy==1.0a0) (0.10.0)
Requirement already satisfied: pillow>=6.2.0 in c:usersyogwsappdatalocalprogramspythonpython39libsite-packages (from matplotlib->oommfpy==1.0a0) (8.2.0)
Requirement already satisfied: pyparsing>=2.2.1 in c:usersyogwsappdatalocalprogramspythonpython39libsite-packages (from matplotlib->oommfpy==1.0a0) (2.4.7)
Requirement already satisfied: six in c:usersyogwsappdatalocalprogramspythonpython39libsite-packages (from cycler>=0.10->matplotlib->oommfpy==1.0a0) (1.16.0)
Building wheels for collected packages: oommfpy
  Building wheel for oommfpy (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:usersyogwsappdatalocalprogramspythonpython39python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:UsersyogwsAppDataLocalTemppip-req-build-75u_mq7ksetup.py'"'"'; __file__='"'"'C:UsersyogwsAppDataLocalTemppip-req-build-75u_mq7ksetup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:UsersyogwsAppDataLocalTemppip-wheel-vvjy1yo0'
       cwd: C:UsersyogwsAppDataLocalTemppip-req-build-75u_mq7k
  Complete output (11 lines):
  c:usersyogwsappdatalocalprogramspythonpython39libsite-packagessetuptoolsdist.py:484: UserWarning: Normalizing '1.0a' to '1.0a0'
    warnings.warn(tmpl.format(**locals()))
  running bdist_wheel
  running build
  running build_py
  running build_ext
  building 'oommfpy.tools.clib' extension
  C:Program Files (x86)Microsoft Visual Studio19BuildToolsVCToolsMSVC.29.30037binHostx64x86cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ioommfpy/tools/clib -Igcc -Ic:usersyogwsappdatalocalprogramspythonpython39include -Ic:usersyogwsappdatalocalprogramspythonpython39include /Tcoommfpy/tools/clib/clib.c /Fobuildtemp.win-amd64-3.9Releaseoommfpy/tools/clib/clib.obj
  clib.c
  c:usersyogwsappdatalocalprogramspythonpython39includepyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
  error: command 'C:Program Files (x86)Microsoft Visual Studio2019BuildToolsVCToolsMSVC14.29.30037binHostx64x86cl.exe' failed with exit code 2
  ----------------------------------------
  ERROR: Failed building wheel for oommfpy
  Running setup.py clean for oommfpy
Failed to build oommfpy
Installing collected packages: oommfpy
    Running setup.py install for oommfpy ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:usersyogwsappdatalocalprogramspythonpython39python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:UsersyogwsAppDataLocalTemppip-req-build-75u_mq7ksetup.py'"'"'; __file__='"'"'C:UsersyogwsAppDataLocalTemppip-req-build-75u_mq7ksetup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersyogwsAppDataLocalTemppip-record-auhvv9krinstall-record.txt' --single-version-externally-managed --compile --install-headers 'c:usersyogwsappdatalocalprogramspythonpython39Includeoommfpy'
         cwd: C:UsersyogwsAppDataLocalTemppip-req-build-75u_mq7k
    Complete output (27 lines):
    c:usersyogwsappdatalocalprogramspythonpython39libsite-packagessetuptoolsdist.py:484: UserWarning: Normalizing '1.0a' to '1.0a0'
      warnings.warn(tmpl.format(**locals()))
    running install
    running build
    running build_py
    creating build
    creating buildlib.win-amd64-3.9
    creating buildlib.win-amd64-3.9oommfpy
    copying oommfpyoommfpy.py -> buildlib.win-amd64-3.9oommfpy
    copying oommfpy__init__.py -> buildlib.win-amd64-3.9oommfpy
    creating buildlib.win-amd64-3.9oommfpytools
    copying oommfpytoolsomf2vtk.py -> buildlib.win-amd64-3.9oommfpytools
    copying oommfpytoolsplot_omf.py -> buildlib.win-amd64-3.9oommfpytools
    copying oommfpytoolsplot_slices.py -> buildlib.win-amd64-3.9oommfpytools
    copying oommfpytoolsplot_tools.py -> buildlib.win-amd64-3.9oommfpytools
    copying oommfpytools__init__.py -> buildlib.win-amd64-3.9oommfpytools
    running build_ext
    building 'oommfpy.tools.clib' extension
    creating buildtemp.win-amd64-3.9
    creating buildtemp.win-amd64-3.9Release
    creating buildtemp.win-amd64-3.9Releaseoommfpy
    creating buildtemp.win-amd64-3.9Releaseoommfpytools
    creating buildtemp.win-amd64-3.9Releaseoommfpytoolsclib
    C:Program Files (x86)Microsoft Visual Studio19BuildToolsVCToolsMSVC.29.30037binHostx64x86cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ioommfpy/tools/clib -Igcc -Ic:usersyogwsappdatalocalprogramspythonpython39include -Ic:usersyogwsappdatalocalprogramspythonpython39include /Tcoommfpy/tools/clib/clib.c /Fobuildtemp.win-amd64-3.9Releaseoommfpy/tools/clib/clib.obj
    clib.c
    c:usersyogwsappdatalocalprogramspythonpython39includepyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
    error: command 'C:Program Files (x86)Microsoft Visual Studio2019BuildToolsVCToolsMSVC14.29.30037binHostx64x86cl.exe' failed with exit code 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:usersyogwsappdatalocalprogramspythonpython39python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:UsersyogwsAppDataLocalTemppip-req-build-75u_mq7ksetup.py'"'"'; __file__='"'"'C:UsersyogwsAppDataLocalTemppip-req-build-75u_mq7ksetup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersyogwsAppDataLocalTemppip-record-auhvv9krinstall-record.txt' --single-version-externally-managed --compile --install-headers 'c:usersyogwsappdatalocalprogramspythonpython39Includeoommfpy' Check the logs for full command output.

Source: Windows Questions

LEAVE A COMMENT