hydrogeoscience / pygtide

A Python module and wrapper for ETERNA PREDICT to compute gravitational tides on Earth
Mozilla Public License 2.0
50 stars 19 forks source link

No module named 'numpy.distutils._msvccompiler' in numpy.distutils #39

Closed MiguelonGonzalez closed 7 months ago

MiguelonGonzalez commented 1 year ago

Hello, I am trying to install pytgtide in a Windows 10 x64 bits machine, in a new conda environment with python 3.6, but it is being very difficult. I have installed MinGW64 compilers and connect them to the path by editting the windows variables, as well as MSVC compilers. I also have installed numpy, requests and git in my conda environment throughtout conda channel (what is supposed to be the correct way for numpy to be succesfully built, and not using pip).

Then I have installed pygtide by the Windows way indicated in the readme file: pip install --global-option build_ext --global-option --compiler=mingw32 --global-option --fcompiler=gnu95 pygtide

Nevertheless, the same error appears constantly: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils

It seems to be looking for the BLAS and LAPACK libraries on the current env and in the base one, but cannot find them. These are all the libraries NOT supposed to be AVAILABLE:

mkl_rt blis openblas tatlas satlas ptf77blas ptcblas atlas f77blas cblas atlas

However, those libraries are supposed to be automatically installed in conda by default -indeed, mkland libblas are already installed. I have also tried to install openblaslibrary, but the error persists.

Even more, the long script (show as follows) ends with a ValuError: ValueError: Version 14,0 of MSVCRT not supported yet

I wonder if it is a compiler error or a pygtideerror related. Any help is welcome!

WARNING: Implying --no-binary=:all: due to the presence of --build-option / --global-option.
Collecting pygtide
  Using cached pygtide-0.7.1.tar.gz (3.1 MB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\users\miguelgj\miniconda3\envs\pygtide\lib\site-packages (from pygtide) (1.21.6)
Collecting pandas (from pygtide)
  Using cached pandas-1.3.5.tar.gz (4.7 MB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [782 lines of output]
      Collecting setuptools>=51.0.0
        Using cached setuptools-68.0.0-py3-none-any.whl
      Collecting wheel
        Using cached wheel-0.40.0-py3-none-any.whl
      Collecting Cython<3,>=0.29.24
        Using cached Cython-0.29.35.tar.gz (2.1 MB)
        Preparing metadata (setup.py): started
        Preparing metadata (setup.py): finished with status 'done'
      Collecting oldest-supported-numpy>=0.10
        Using cached oldest_supported_numpy-2022.11.19-py3-none-any.whl
      Collecting numpy==1.14.5 (from oldest-supported-numpy>=0.10)
        Using cached numpy-1.14.5.zip (4.9 MB)
        Preparing metadata (setup.py): started
        Preparing metadata (setup.py): finished with status 'done'
      Building wheels for collected packages: Cython, numpy
        Building wheel for Cython (setup.py): started
        Building wheel for Cython (setup.py): finished with status 'error'
        error: subprocess-exited-with-error

        python setup.py bdist_wheel did not run successfully.
        exit code: 1

        [357 lines of output]
        Unable to find pgen, not compiling formal grammar.
        running bdist_wheel
        running build
        running build_py
        creating build 
        creating build\lib.win-amd64-cpython-37
        copying cython.py -> build\lib.win-amd64-cpython-37
        creating build\lib.win-amd64-cpython-37\Cython
        # Multiples lines copyn cython package for building and creating
        creating build\temp.win-amd64-cpython-37\Release\users\miguelgj\appdata\local\temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510
        creating build\temp.win-amd64-cpython-37\Release\users\miguelgj\appdata\local\temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\cython
        creating build\temp.win-amd64-cpython-37\Release\users\miguelgj\appdata\local\temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\cython\plex
        gcc -mdll -O -Wall -DMS_WIN64=1 -IC:\Users\MiguelGJ\miniconda3\envs\pygtide\include -IC:\Users\MiguelGJ\miniconda3\envs\pygtide\Include -c C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\Cython\Plex\Scanners.c -o build\temp.win-amd64-cpython-37\Release\users\miguelgj\appdata\local\temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\cython\plex\scanners.o
        C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\Cython\Plex\Scanners.c: In function '__Pyx_ImportType_0_29_35':
        C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\Cython\Plex\Scanners.c:9437:13: warning: unknown conversion type character 'z' in format [-Wformat=]
         9437 |             "%s.%s size changed, may indicate binary incompatibility. "
              |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\Cython\Plex\Scanners.c:9438:24: note: format string is defined here
         9438 |             "Expected %zd from C header, got %zd from PyObject",
              |                        ^
        C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\Cython\Plex\Scanners.c:9437:13: warning: unknown conversion type character 'z' in format [-Wformat=]
         9437 |             "%s.%s size changed, may indicate binary incompatibility. "
              |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\Cython\Plex\Scanners.c:9438:47: note: format string is defined here
         9438 |             "Expected %zd from C header, got %zd from PyObject",
              |                                               ^
        C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\Cython\Plex\Scanners.c:9437:13: warning: too many arguments for format [-Wformat-extra-args]
         9437 |             "%s.%s size changed, may indicate binary incompatibility. "
              |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        writing build\temp.win-amd64-cpython-37\Release\users\miguelgj\appdata\local\temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\cython\plex\Scanners.cp37-win_amd64.def
        error: [Errno 2] No such file or directory: 'build\\temp.win-amd64-cpython-37\\Release\\users\\miguelgj\\appdata\\local\\temp\\pip-install-872fvs5p\\cython_09fc5e63d3b344cc9d0223fdc630a510\\cython\\plex\\Scanners.cp37-win_amd64.def'
        [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for Cython
        Running setup.py clean for Cython
        Building wheel for numpy (setup.py): started
        Building wheel for numpy (setup.py): finished with status 'error'
        error: subprocess-exited-with-error

        python setup.py bdist_wheel did not run successfully.
        exit code: 1

        [362 lines of output]
        Running from numpy source directory.
        blas_opt_info:
        blas_mkl_info:
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries mkl_rt not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
          NOT AVAILABLE

        blis_info:
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries blis not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
          NOT AVAILABLE

        openblas_info:
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries openblas not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
        get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
        customize GnuFCompiler
        Could not locate executable g77
        Could not locate executable f77
        customize IntelVisualFCompiler
        Could not locate executable ifort
        Could not locate executable ifl
        customize AbsoftFCompiler
        Could not locate executable f90
        customize CompaqVisualFCompiler
        Found executable C:\Users\MiguelGJ\miniconda3\envs\pygtide\Library\usr\bin\DF.exe
        customize IntelItaniumVisualFCompiler
        Could not locate executable efl
        customize Gnu95FCompiler
        Found executable C:\Program Files\mingw64\bin\gfortran.exe
          NOT AVAILABLE

        atlas_3_10_blas_threads_info:
        Setting PTATLAS=ATLAS
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries tatlas not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
          NOT AVAILABLE

        atlas_3_10_blas_info:
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries satlas not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
          NOT AVAILABLE

        atlas_blas_threads_info:
        Setting PTATLAS=ATLAS
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries ptf77blas,ptcblas,atlas not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
          NOT AVAILABLE

        atlas_blas_info:
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries f77blas,cblas,atlas not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
          NOT AVAILABLE

        C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\system_info.py:624: UserWarning:
            Atlas (http://math-atlas.sourceforge.net/) libraries not found.
            Directories to search for the libraries can be specified in the
            numpy/distutils/site.cfg file (section [atlas]) or by setting
            the ATLAS environment variable.
          self.calc_info()
        blas_info:
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries blas not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
          NOT AVAILABLE

        C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\system_info.py:624: UserWarning:
            Blas (http://www.netlib.org/blas/) libraries not found.
            Directories to search for the libraries can be specified in the
            numpy/distutils/site.cfg file (section [blas]) or by setting
            the BLAS environment variable.
          self.calc_info()
        blas_src_info:
          NOT AVAILABLE

        C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\system_info.py:624: UserWarning:
            Blas (http://www.netlib.org/blas/) sources not found.
            Directories to search for the sources can be specified in the
            numpy/distutils/site.cfg file (section [blas_src]) or by setting
            the BLAS_SRC environment variable.
          self.calc_info()
          NOT AVAILABLE

        "svnversion" no se reconoce como un comando interno o externo,
        programa o archivo por lotes ejecutable.
        non-existing path in 'numpy\\distutils': 'site.cfg'
        "svnversion" no se reconoce como un comando interno o externo,
        programa o archivo por lotes ejecutable.
        F2PY Version 2
        lapack_opt_info:
        lapack_mkl_info:
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries mkl_rt not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
          NOT AVAILABLE

        openblas_lapack_info:
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries openblas not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
        get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
        customize GnuFCompiler
        customize IntelVisualFCompiler
        customize AbsoftFCompiler
        customize CompaqVisualFCompiler
        customize IntelItaniumVisualFCompiler
        customize Gnu95FCompiler
          NOT AVAILABLE

        openblas_clapack_info:
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries openblas,lapack not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
        get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
        customize GnuFCompiler
        customize IntelVisualFCompiler
        customize AbsoftFCompiler
        customize CompaqVisualFCompiler
        customize IntelItaniumVisualFCompiler
        customize Gnu95FCompiler
          NOT AVAILABLE

        atlas_3_10_threads_info:
        Setting PTATLAS=ATLAS
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries tatlas,tatlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries tatlas,tatlas not found in C:\
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack_atlas not found in C:\
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries tatlas,tatlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\libs
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\libs
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries tatlas,tatlas not found in C:\Users\MiguelGJ\miniconda3\Library\lib
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\Library\lib
        <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
          NOT AVAILABLE

        atlas_3_10_info:
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries satlas,satlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries satlas,satlas not found in C:\
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack_atlas not found in C:\
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries satlas,satlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\libs
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\libs
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries satlas,satlas not found in C:\Users\MiguelGJ\miniconda3\Library\lib
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\Library\lib
        <class 'numpy.distutils.system_info.atlas_3_10_info'>
          NOT AVAILABLE

        atlas_threads_info:
        Setting PTATLAS=ATLAS
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries ptf77blas,ptcblas,atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries ptf77blas,ptcblas,atlas not found in C:\
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack_atlas not found in C:\
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries ptf77blas,ptcblas,atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\libs
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\libs
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries ptf77blas,ptcblas,atlas not found in C:\Users\MiguelGJ\miniconda3\Library\lib
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\Library\lib
        <class 'numpy.distutils.system_info.atlas_threads_info'>
          NOT AVAILABLE

        atlas_info:
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries f77blas,cblas,atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries f77blas,cblas,atlas not found in C:\
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack_atlas not found in C:\
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries f77blas,cblas,atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\libs
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\libs
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries f77blas,cblas,atlas not found in C:\Users\MiguelGJ\miniconda3\Library\lib
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\Library\lib
        <class 'numpy.distutils.system_info.atlas_info'>
          NOT AVAILABLE

        lapack_info:
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries lapack not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
          NOT AVAILABLE

        C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\system_info.py:624: UserWarning:
            Lapack (http://www.netlib.org/lapack/) libraries not found.
            Directories to search for the libraries can be specified in the
            numpy/distutils/site.cfg file (section [lapack]) or by setting
            the LAPACK environment variable.
          self.calc_info()
        lapack_src_info:
          NOT AVAILABLE

        C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\system_info.py:624: UserWarning:
            Lapack (http://www.netlib.org/lapack/) sources not found.
            Directories to search for the sources can be specified in the
            numpy/distutils/site.cfg file (section [lapack_src]) or by setting
            the LAPACK_SRC environment variable.
          self.calc_info()
          NOT AVAILABLE

        C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\dist.py:265: UserWarning: Unknown distribution option: 'define_macros'
          warnings.warn(msg)
        running bdist_wheel
        running build
        running config_cc
        unifing config_cc, config, build_clib, build_ext, build commands --compiler options
        running config_fc
        unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
        running build_src
        build_src
        building py_modules sources
        creating build
        creating build\src.win-amd64-3.7
        creating build\src.win-amd64-3.7\numpy
        creating build\src.win-amd64-3.7\numpy\distutils
        building library "npymath" sources
        get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
        customize GnuFCompiler
        customize IntelVisualFCompiler
        customize AbsoftFCompiler
        customize CompaqVisualFCompiler
        customize IntelItaniumVisualFCompiler
        customize Gnu95FCompiler
        customize Gnu95FCompiler
        customize Gnu95FCompiler using config
        Traceback (most recent call last):
          File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\mingw32ccompiler.py", line 566, in msvc_manifest_xml
            fullver = _MSVCRVER_TO_FULLVER[str(maj * 10 + min)]
        KeyError: '140'

        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
          File "<string>", line 36, in <module>
          File "<pip-setuptools-caller>", line 34, in <module>
          File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\setup.py", line 394, in <module>
            setup_package()
          File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\setup.py", line 386, in setup_package
            setup(**metadata)
          File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\core.py", line 169, in setup
            return old_setup(**new_attr)
          File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\__init__.py", line 107, in setup
            return distutils.core.setup(**attrs)
          File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
            return run_commands(dist)
          File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
            dist.run_commands()
          File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
            self.run_command(cmd)
          File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\dist.py", line 1234, in run_command
            super().run_command(command)
          File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
            cmd_obj.run()
          File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\wheel\bdist_wheel.py", line 343, in run
            self.run_command("build")
          File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
            self.distribution.run_command(command)
          File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\dist.py", line 1234, in run_command
            super().run_command(command)
          File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
            cmd_obj.run()
          File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\command\build.py", line 47, in run
            old_build.run(self)
          File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run
            self.run_command(cmd_name)
          File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
            self.distribution.run_command(command)
          File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\dist.py", line 1234, in run_command
            super().run_command(command)
          File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
            cmd_obj.run()
          File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\command\build_src.py", line 148, in run
            self.build_sources()
          File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\command\build_src.py", line 159, in build_sources
            self.build_library_sources(*libname_info)
          File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\command\build_src.py", line 294, in build_library_sources
            sources = self.generate_sources(sources, (lib_name, build_info))
          File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\command\build_src.py", line 377, in generate_sources
            source = func(extension, build_dir)
          File "numpy\core\setup.py", line 673, in get_mathlib_info
            st = config_cmd.try_link('int main(void) { return 0;}')
          File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\command\config.py", line 249, in try_link
            self._link(body, headers, include_dirs, libraries, library_dirs, lang)
          File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\command\config.py", line 152, in _link
            generate_manifest(self)
          File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\mingw32ccompiler.py", line 653, in generate_manifest
            manxml = msvc_manifest_xml(ma, mi)
          File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\mingw32ccompiler.py", line 569, in msvc_manifest_xml
            (maj, min))
        ValueError: Version 14,0 of MSVCRT not supported yet
        [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for numpy
        Running setup.py clean for numpy
        error: subprocess-exited-with-error

        python setup.py clean did not run successfully.
        exit code: 1

        [10 lines of output]
        Running from numpy source directory.

        `setup.py clean` is not supported, use one of the following instead:

          - `git clean -xdf` (cleans all files)
          - `git clean -Xdf` (cleans all versioned files, doesn't touch
                              files that aren't checked into the git repo)

        Add `--force` to your command to use it anyway if you must (unsupported).

        [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed cleaning build dir for numpy
      Failed to build Cython numpy
      ERROR: Could not build wheels for Cython, numpy, which is required to install pyproject.toml-based projects
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
hydrogeoscience commented 7 months ago

Compilation under Windows is a nightmare. Please use the new pre-compiled wheels available for different Python versions.