yuanzunli / kdeLF

A Flexible Method for Estimating Luminosity Functions via Kernel Density Estimation
MIT License
0 stars 1 forks source link

Installing issue with Apple M1 / Ubuntu 18 #1

Closed alessandropeca closed 2 years ago

alessandropeca commented 2 years ago

Hi, I am trying to install your kdfLF on my M1 Mac, but I am not sure if it is possible. Using pip install -U kdeLF I get:

ERROR: Command errored out with exit status 1: /Users/xpecax/opt/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/pip-install-93bhbj2q/kdelf_ffe65ab8a2654e1ab0e7fe62f4d3d5f4/setup.py'"'"'; __file__='"'"'/private/var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/pip-install-93bhbj2q/kdelf_ffe65ab8a2654e1ab0e7fe62f4d3d5f4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/pip-record-vukdpyu0/install-record.txt --single-version-externally-managed --compile --install-headers /Users/xpecax/opt/anaconda3/include/python3.8/kdeLF Check the logs for full command output.

Downloading from git-hub, instead:

Processing /Users/xpecax/kdeLF
  DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
   pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/xpecax/opt/anaconda3/bin/python /Users/xpecax/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/tmpoftv6lot
       cwd: /private/var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/pip-req-build-iu0vx_bt
  Complete output (16 lines):
  Traceback (most recent call last):
    File "/Users/xpecax/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 349, in <module>
      main()
    File "/Users/xpecax/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 331, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/Users/xpecax/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 117, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/private/var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/pip-build-env-zfng6ict/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 177, in get_requires_for_build_wheel
      return self._get_build_requires(
    File "/private/var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/pip-build-env-zfng6ict/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 159, in _get_build_requires
      self.run_setup()
    File "/private/var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/pip-build-env-zfng6ict/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 174, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 29, in <module>
      from numpy.distutils.core import setup
  ModuleNotFoundError: No module named 'numpy'
  ----------------------------------------
WARNING: Discarding file:///Users/xpecax/kdeLF. Command errored out with exit status 1: /Users/xpecax/opt/anaconda3/bin/python /Users/xpecax/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/tmpoftv6lot Check the logs for full command output.
ERROR: Command errored out with exit status 1: /Users/xpecax/opt/anaconda3/bin/python /Users/xpecax/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/tmpoftv6lot Check the logs for full command output.

This is weird since it looks like I don't have numpy. Any help?

yuanzunli commented 2 years ago

@alessandropeca Currently, we have not yet provided .whl files that support the Mac platform. In this situation, you need to install the Intel fortran Compiler first, and then try the pip installation again.

alessandropeca commented 2 years ago

Hi, I am trying to install your kdfLF on my M1 Mac, but I am not sure if it is possible. Using pip install -U kdeLF I get: ERROR: Command errored out with exit status 1: /Users/xpecax/opt/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/pip-install-93bhbj2q/kdelf_ffe65ab8a2654e1ab0e7fe62f4d3d5f4/setup.py'"'"'; __file__='"'"'/private/var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/pip-install-93bhbj2q/kdelf_ffe65ab8a2654e1ab0e7fe62f4d3d5f4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/pip-record-vukdpyu0/install-record.txt --single-version-externally-managed --compile --install-headers /Users/xpecax/opt/anaconda3/include/python3.8/kdeLF Check the logs for full command output. Downloading from git-hub, instead:

Processing /Users/xpecax/kdeLF
  DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
   pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/xpecax/opt/anaconda3/bin/python /Users/xpecax/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/tmpoftv6lot
       cwd: /private/var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/pip-req-build-iu0vx_bt
  Complete output (16 lines):
  Traceback (most recent call last):
    File "/Users/xpecax/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 349, in <module>
      main()
    File "/Users/xpecax/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 331, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/Users/xpecax/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 117, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/private/var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/pip-build-env-zfng6ict/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 177, in get_requires_for_build_wheel
      return self._get_build_requires(
    File "/private/var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/pip-build-env-zfng6ict/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 159, in _get_build_requires
      self.run_setup()
    File "/private/var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/pip-build-env-zfng6ict/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 174, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 29, in <module>
      from numpy.distutils.core import setup
  ModuleNotFoundError: No module named 'numpy'
  ----------------------------------------
WARNING: Discarding file:///Users/xpecax/kdeLF. Command errored out with exit status 1: /Users/xpecax/opt/anaconda3/bin/python /Users/xpecax/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/tmpoftv6lot Check the logs for full command output.
ERROR: Command errored out with exit status 1: /Users/xpecax/opt/anaconda3/bin/python /Users/xpecax/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /var/folders/rm/67gxzb_j2z18sh6mcmwxw6x80000gn/T/tmpoftv6lot Check the logs for full command output.

This is weird since it looks like I don't have numpy. Any help?

Hi, I'm the maintainer of kdeLF. The absent of numpy is the cause of this issue of "ModuleNotFoundError: No module named 'numpy", you should install the module named "numpy" use "pip install numpy". Except that, you should install other module that required, for detail you should read the docs at https://kdelf.readthedocs.io/en/latest/.

Thank you for your answer. I already have the numpy module installed. Is that possible there is some wrong path? Requirement already satisfied: numpy in /Users/xpecax/opt/anaconda3/lib/python3.8/site-packages (1.20.3)

alessandropeca commented 2 years ago

I still get the same error, even if numpy is installed.

alessandropeca commented 2 years ago

@alessandropeca Currently, we have not yet provided .whl files that support the Mac platform. In this situation, you need to install the Intel fortran Compiler first, and then try the pip installation again.

It seems like it is not possible to install it on a M1 CPU. However, I am switching to a Linux machine, I installed the intel software, and I am still getting the same numpy error.

yuanzunli commented 2 years ago

@alessandropeca You can install or update the "setuptools" package and try again. What's the version of your Linux? Ubuntu or else?

alessandropeca commented 2 years ago

setuptools

My current version is Ubuntu 18.04.6 LTS. "setuptools" are already installed.

yuanzunli commented 2 years ago

@alessandropeca Can you show me your output message of the pip install?

alessandropeca commented 2 years ago

@yuanzunli sure:

~/kdeLF$ /opt/anaconda3/bin/pip install .
Processing /Data/home/apeca/kdeLF
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      Traceback (most recent call last):
        File "/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-ewhlmt3a/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 177, in get_requires_for_build_wheel
          return self._get_build_requires(
        File "/tmp/pip-build-env-ewhlmt3a/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 159, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-ewhlmt3a/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 174, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 29, in <module>
          from numpy.distutils.core import setup
      ModuleNotFoundError: No module named 'numpy'
      [end of output]

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

× Getting requirements to build wheel 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.

or:

~/kdeLF$ /opt/anaconda3/bin/pip install -U kdeLF
Collecting kdeLF
  Using cached kdeLF-1.0.7.tar.gz (185 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.13 in /opt/anaconda3/lib/python3.8/site-packages (from kdeLF) (1.20.1)
Requirement already satisfied: scipy in /opt/anaconda3/lib/python3.8/site-packages (from kdeLF) (1.6.2)
Requirement already satisfied: astropy in /opt/anaconda3/lib/python3.8/site-packages (from kdeLF) (4.2.1)
Collecting emcee
  Downloading emcee-3.1.1-py2.py3-none-any.whl (45 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.0/46.0 KB 8.5 MB/s eta 0:00:00
Requirement already satisfied: matplotlib in /opt/anaconda3/lib/python3.8/site-packages (from kdeLF) (3.3.4)
Requirement already satisfied: h5py in /opt/anaconda3/lib/python3.8/site-packages (from kdeLF) (2.10.0)
Collecting corner
  Downloading corner-2.2.1-py3-none-any.whl (15 kB)
Requirement already satisfied: tqdm in /opt/anaconda3/lib/python3.8/site-packages (from kdeLF) (4.59.0)
Requirement already satisfied: pyerfa in /opt/anaconda3/lib/python3.8/site-packages (from astropy->kdeLF) (1.7.3)
Requirement already satisfied: kiwisolver>=1.0.1 in /opt/anaconda3/lib/python3.8/site-packages (from matplotlib->kdeLF) (1.3.1)
Requirement already satisfied: python-dateutil>=2.1 in /opt/anaconda3/lib/python3.8/site-packages (from matplotlib->kdeLF) (2.8.1)
Requirement already satisfied: pillow>=6.2.0 in /opt/anaconda3/lib/python3.8/site-packages (from matplotlib->kdeLF) (8.2.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in /opt/anaconda3/lib/python3.8/site-packages (from matplotlib->kdeLF) (2.4.7)
Requirement already satisfied: cycler>=0.10 in /opt/anaconda3/lib/python3.8/site-packages (from matplotlib->kdeLF) (0.10.0)
Requirement already satisfied: six in /opt/anaconda3/lib/python3.8/site-packages (from h5py->kdeLF) (1.15.0)
Building wheels for collected packages: kdeLF
  Building wheel for kdeLF (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [325 lines of output]
      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 extension "kdeLF.kde_fortran" sources
      f2py options: []
        adding 'build/src.linux-x86_64-3.8/build/src.linux-x86_64-3.8/kdeLF/fortranobject.c' to sources.
        adding 'build/src.linux-x86_64-3.8/build/src.linux-x86_64-3.8/kdeLF' to include_dirs.
        adding 'build/src.linux-x86_64-3.8/kdeLF/kde_fortran-f2pywrappers.f' to sources.
        adding 'build/src.linux-x86_64-3.8/kdeLF/kde_fortran-f2pywrappers2.f90' to sources.
      build_src: building npy-pkg config files
      running build_py
      creating build/lib.linux-x86_64-3.8
      creating build/lib.linux-x86_64-3.8/kdeLF
      copying kdeLF/kdeLF.py -> build/lib.linux-x86_64-3.8/kdeLF
      copying kdeLF/test_kdeLF.py -> build/lib.linux-x86_64-3.8/kdeLF
      copying kdeLF/__init__.py -> build/lib.linux-x86_64-3.8/kdeLF
      creating build/lib.linux-x86_64-3.8/kdeLF/examples
      creating build/lib.linux-x86_64-3.8/kdeLF/examples/data
      copying kdeLF/examples/data/test_sample.dat -> build/lib.linux-x86_64-3.8/kdeLF/examples/data
      running build_ext
      customize UnixCCompiler
      customize UnixCCompiler using build_ext
      CCompilerOpt.cc_test_flags[999] : testing flags (-march=native)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      creating /tmp/tmpi_qj4mdi/opt
      creating /tmp/tmpi_qj4mdi/opt/anaconda3
      creating /tmp/tmpi_qj4mdi/opt/anaconda3/lib
      creating /tmp/tmpi_qj4mdi/opt/anaconda3/lib/python3.8
      creating /tmp/tmpi_qj4mdi/opt/anaconda3/lib/python3.8/site-packages
      creating /tmp/tmpi_qj4mdi/opt/anaconda3/lib/python3.8/site-packages/numpy
      creating /tmp/tmpi_qj4mdi/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils
      creating /tmp/tmpi_qj4mdi/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks
      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-march=native'
      CCompilerOpt.cc_test_flags[999] : testing flags (-O3)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-O3'
      CCompilerOpt.cc_test_flags[999] : testing flags (-Werror)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-Werror'
      CCompilerOpt.__init__[1674] : check requested baseline
      CCompilerOpt.cc_test_flags[999] : testing flags (-msse)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse'
      CCompilerOpt.cc_test_flags[999] : testing flags (-msse2)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse2'
      CCompilerOpt.feature_test[1444] : testing feature 'SSE' with flags (-msse -msse2)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -Werror'
      CCompilerOpt.feature_test[1444] : testing feature 'SSE2' with flags (-msse -msse2)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -Werror'
      CCompilerOpt.cc_test_flags[999] : testing flags (-msse3)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse3'
      CCompilerOpt.feature_test[1444] : testing feature 'SSE3' with flags (-msse -msse2 -msse3)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -Werror'
      CCompilerOpt.__init__[1683] : check requested dispatch-able features
      CCompilerOpt.cc_test_flags[999] : testing flags (-mssse3)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mssse3'
      CCompilerOpt.cc_test_flags[999] : testing flags (-msse4.1)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse4.1'
      CCompilerOpt.feature_test[1444] : testing feature 'SSE41' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -Werror'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mpopcnt)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mpopcnt'
      CCompilerOpt.cc_test_flags[999] : testing flags (-msse4.2)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse4.2'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mf16c)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mf16c'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx2)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx2'
      CCompilerOpt.feature_test[1444] : testing feature 'AVX2' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2 -Werror'
      CCompilerOpt.feature_test[1444] : testing feature 'POPCNT' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -Werror'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mfma)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mfma'
      CCompilerOpt.feature_test[1444] : testing feature 'FMA3' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -Werror'
      CCompilerOpt.feature_test[1444] : testing feature 'F16C' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -Werror'
      CCompilerOpt.feature_test[1444] : testing feature 'AVX' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -Werror'
      CCompilerOpt.feature_test[1444] : testing feature 'SSE42' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -Werror'
      CCompilerOpt.feature_test[1444] : testing feature 'SSSE3' with flags (-msse -msse2 -msse3 -mssse3)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -Werror'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx512f)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx512f'
      CCompilerOpt.feature_test[1444] : testing feature 'AVX512F' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -Werror'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx512cd)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx512cd'
      CCompilerOpt.feature_test[1444] : testing feature 'AVX512CD' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -Werror'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx512vl -mavx512bw -mavx512dq)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx512vl -mavx512bw -mavx512dq'
      CCompilerOpt.feature_test[1444] : testing feature 'AVX512_SKX' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx512er -mavx512pf)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx512er -mavx512pf'
      CCompilerOpt.feature_test[1444] : testing feature 'AVX512_KNL' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512er -mavx512pf)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512er -mavx512pf -Werror'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx512vnni)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx512vnni'
      CCompilerOpt.dist_test[576] : CCompilerOpt._dist_test_spawn[711] : Command (gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/anaconda3/include/python3.8 -c /opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/test_flags.c -o /tmp/tmpi_qj4mdi/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/test_flags.o -MMD -MF /tmp/tmpi_qj4mdi/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/test_flags.o.d -mavx512vnni) failed with exit status 1 output ->
      gcc: error: unrecognized command line option ‘-mavx512vnni’; did you mean ‘-mavx5124vnniw’?

      CCompilerOpt.cc_test_flags[1003] : testing failed
      CCompilerOpt.feature_test[1444] : testing feature 'AVX512_CLX' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror'
      CCompilerOpt.dist_test[576] : CCompilerOpt._dist_test_spawn[711] : Command (gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/anaconda3/include/python3.8 -c /opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/cpu_avx512_clx.c -o /tmp/tmpi_qj4mdi/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/cpu_avx512_clx.o -MMD -MF /tmp/tmpi_qj4mdi/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/cpu_avx512_clx.o.d -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror) failed with exit status 1 output ->
      /opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/cpu_avx512_clx.c: In function ‘main’:
      /opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/cpu_avx512_clx.c:6:17: error: implicit declaration of function ‘_mm512_dpbusd_epi32’; did you mean ‘_mm512_4dpwssd_epi32’? [-Werror=implicit-function-declaration]
           __m512i a = _mm512_dpbusd_epi32(_mm512_setzero_si512(), _mm512_setzero_si512(), _mm512_setzero_si512());
                       ^~~~~~~~~~~~~~~~~~~
                       _mm512_4dpwssd_epi32
      /opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/cpu_avx512_clx.c:6:17: error: incompatible types when initializing type ‘__m512i {aka __vector(8) long long int}’ using type ‘int’
      cc1: all warnings being treated as errors

      CCompilerOpt.feature_test[1458] : testing failed
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx512ifma -mavx512vbmi)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx512ifma -mavx512vbmi'
      CCompilerOpt.feature_test[1444] : testing feature 'AVX512_CNL' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512ifma -mavx512vbmi)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512ifma -mavx512vbmi -Werror'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq'
      CCompilerOpt.feature_test[1444] : testing feature 'AVX512_KNM' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512er -mavx512pf -mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512er -mavx512pf -mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq -Werror'
      CCompilerOpt.__init__[1695] : skip features (SSE2 SSE3 SSE) since its part of baseline
      CCompilerOpt.__init__[1699] : initialize targets groups
      CCompilerOpt.__init__[1701] : parse target group simd_test
      CCompilerOpt._parse_target_tokens[1910] : skip targets (FMA4 XOP VSX VSX2 NEON VSX3 ASIMD) not part of baseline or dispatch-able features
      CCompilerOpt._parse_policy_not_keepbase[2022] : skip baseline features (SSE2)
      CCompilerOpt.generate_dispatch_header[2236] : generate CPU dispatch header: (build/src.linux-x86_64-3.8/numpy/distutils/include/npy_cpu_dispatch_config.h)
      CCompilerOpt.generate_dispatch_header[2245] : dispatch header dir build/src.linux-x86_64-3.8/numpy/distutils/include does not exist, creating it
      CCompilerOpt.feature_extra_checks[1519] : Testing extra checks for feature 'AVX512F' (AVX512F_REDUCE)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -Werror'
      CCompilerOpt.feature_extra_checks[1519] : Testing extra checks for feature 'AVX512_SKX' (AVX512BW_MASK AVX512DQ_MASK)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror'
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror'
      Detected changes on compiler optimizations, force rebuilding
      customize IntelEM64TFCompiler
      Could not locate executable ifort
      Could not locate executable efort
      Could not locate executable efc
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-bi9qcv0t/kdelf_c9ee97f69081414e9e6db73bac74370c/setup.py", line 30, in <module>
          setup(configuration=configuration,
        File "/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/core.py", line 169, in setup
          return old_setup(**new_attr)
        File "/opt/anaconda3/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
          return distutils.core.setup(**attrs)
        File "/opt/anaconda3/lib/python3.8/distutils/core.py", line 148, in setup
          dist.run_commands()
        File "/opt/anaconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands
          self.run_command(cmd)
        File "/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/opt/anaconda3/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
          self.run_command('build')
        File "/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/command/build.py", line 61, in run
          old_build.run(self)
        File "/opt/anaconda3/lib/python3.8/distutils/command/build.py", line 135, in run
          self.run_command(cmd_name)
        File "/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/command/build_ext.py", line 274, in run
          fcompiler.customize(self.distribution)
        File "/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/fcompiler/__init__.py", line 457, in customize
          self.find_executables()
        File "/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/fcompiler/__init__.py", line 346, in find_executables
          raise CompilerNotFound('%s: f90 nor f77' % ctype)
      numpy.distutils.fcompiler.CompilerNotFound: intelem: f90 nor f77

      ########### EXT COMPILER OPTIMIZATION ###########
      Platform      :
        Architecture: x64
        Compiler    : gcc

      CPU baseline  :
        Requested   : 'min'
        Enabled     : SSE SSE2 SSE3
        Flags       : -msse -msse2 -msse3
        Extra checks: none

      CPU dispatch  :
        Requested   : 'max -xop -fma4'
        Enabled     : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CNL
        Generated   : none
      CCompilerOpt._cache_write[796] : write cache to path -> /tmp/pip-install-bi9qcv0t/kdelf_c9ee97f69081414e9e6db73bac74370c/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_ext.py
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for kdeLF
  Running setup.py clean for kdeLF
Failed to build kdeLF
Installing collected packages: emcee, corner, kdeLF
  Running setup.py install for kdeLF ... error
  error: subprocess-exited-with-error

  × Running setup.py install for kdeLF did not run successfully.
  │ exit code: 1
  ╰─> [328 lines of output]
      running install
      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 extension "kdeLF.kde_fortran" sources
      f2py options: []
        adding 'build/src.linux-x86_64-3.8/build/src.linux-x86_64-3.8/kdeLF/fortranobject.c' to sources.
        adding 'build/src.linux-x86_64-3.8/build/src.linux-x86_64-3.8/kdeLF' to include_dirs.
        adding 'build/src.linux-x86_64-3.8/kdeLF/kde_fortran-f2pywrappers.f' to sources.
        adding 'build/src.linux-x86_64-3.8/kdeLF/kde_fortran-f2pywrappers2.f90' to sources.
      build_src: building npy-pkg config files
      running build_py
      creating build/lib.linux-x86_64-3.8
      creating build/lib.linux-x86_64-3.8/kdeLF
      copying kdeLF/kdeLF.py -> build/lib.linux-x86_64-3.8/kdeLF
      copying kdeLF/test_kdeLF.py -> build/lib.linux-x86_64-3.8/kdeLF
      copying kdeLF/__init__.py -> build/lib.linux-x86_64-3.8/kdeLF
      creating build/lib.linux-x86_64-3.8/kdeLF/examples
      creating build/lib.linux-x86_64-3.8/kdeLF/examples/data
      copying kdeLF/examples/data/test_sample.dat -> build/lib.linux-x86_64-3.8/kdeLF/examples/data
      running build_ext
      customize UnixCCompiler
      customize UnixCCompiler using build_ext
      CCompilerOpt.cc_test_flags[999] : testing flags (-march=native)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      creating /tmp/tmp8npov1jp/opt
      creating /tmp/tmp8npov1jp/opt/anaconda3
      creating /tmp/tmp8npov1jp/opt/anaconda3/lib
      creating /tmp/tmp8npov1jp/opt/anaconda3/lib/python3.8
      creating /tmp/tmp8npov1jp/opt/anaconda3/lib/python3.8/site-packages
      creating /tmp/tmp8npov1jp/opt/anaconda3/lib/python3.8/site-packages/numpy
      creating /tmp/tmp8npov1jp/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils
      creating /tmp/tmp8npov1jp/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks
      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-march=native'
      CCompilerOpt.cc_test_flags[999] : testing flags (-O3)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-O3'
      CCompilerOpt.cc_test_flags[999] : testing flags (-Werror)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-Werror'
      CCompilerOpt.__init__[1674] : check requested baseline
      CCompilerOpt.cc_test_flags[999] : testing flags (-msse)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse'
      CCompilerOpt.cc_test_flags[999] : testing flags (-msse2)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse2'
      CCompilerOpt.feature_test[1444] : testing feature 'SSE2' with flags (-msse -msse2)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -Werror'
      CCompilerOpt.feature_test[1444] : testing feature 'SSE' with flags (-msse -msse2)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -Werror'
      CCompilerOpt.cc_test_flags[999] : testing flags (-msse3)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse3'
      CCompilerOpt.feature_test[1444] : testing feature 'SSE3' with flags (-msse -msse2 -msse3)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -Werror'
      CCompilerOpt.__init__[1683] : check requested dispatch-able features
      CCompilerOpt.cc_test_flags[999] : testing flags (-mssse3)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mssse3'
      CCompilerOpt.cc_test_flags[999] : testing flags (-msse4.1)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse4.1'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mpopcnt)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mpopcnt'
      CCompilerOpt.feature_test[1444] : testing feature 'POPCNT' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -Werror'
      CCompilerOpt.feature_test[1444] : testing feature 'SSE41' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -Werror'
      CCompilerOpt.feature_test[1444] : testing feature 'SSSE3' with flags (-msse -msse2 -msse3 -mssse3)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -Werror'
      CCompilerOpt.cc_test_flags[999] : testing flags (-msse4.2)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse4.2'
      CCompilerOpt.feature_test[1444] : testing feature 'SSE42' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -Werror'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mf16c)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mf16c'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mfma)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mfma'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx2)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx2'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx512f)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx512f'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx512cd)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx512cd'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx512vl -mavx512bw -mavx512dq)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx512vl -mavx512bw -mavx512dq'
      CCompilerOpt.feature_test[1444] : testing feature 'AVX512_SKX' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror'
      CCompilerOpt.feature_test[1444] : testing feature 'AVX2' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2 -Werror'
      CCompilerOpt.feature_test[1444] : testing feature 'F16C' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -Werror'
      CCompilerOpt.feature_test[1444] : testing feature 'AVX512F' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -Werror'
      CCompilerOpt.feature_test[1444] : testing feature 'FMA3' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -Werror'
      CCompilerOpt.feature_test[1444] : testing feature 'AVX512CD' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -Werror'
      CCompilerOpt.feature_test[1444] : testing feature 'AVX' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -Werror'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx512vnni)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx512vnni'
      CCompilerOpt.dist_test[576] : CCompilerOpt._dist_test_spawn[711] : Command (gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/anaconda3/include/python3.8 -c /opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/test_flags.c -o /tmp/tmp8npov1jp/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/test_flags.o -MMD -MF /tmp/tmp8npov1jp/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/test_flags.o.d -mavx512vnni) failed with exit status 1 output ->
      gcc: error: unrecognized command line option ‘-mavx512vnni’; did you mean ‘-mavx5124vnniw’?

      CCompilerOpt.cc_test_flags[1003] : testing failed
      CCompilerOpt.feature_test[1444] : testing feature 'AVX512_CLX' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror'
      CCompilerOpt.dist_test[576] : CCompilerOpt._dist_test_spawn[711] : Command (gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/anaconda3/include/python3.8 -c /opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/cpu_avx512_clx.c -o /tmp/tmp8npov1jp/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/cpu_avx512_clx.o -MMD -MF /tmp/tmp8npov1jp/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/cpu_avx512_clx.o.d -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror) failed with exit status 1 output ->
      /opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/cpu_avx512_clx.c: In function ‘main’:
      /opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/cpu_avx512_clx.c:6:17: error: implicit declaration of function ‘_mm512_dpbusd_epi32’; did you mean ‘_mm512_4dpwssd_epi32’? [-Werror=implicit-function-declaration]
           __m512i a = _mm512_dpbusd_epi32(_mm512_setzero_si512(), _mm512_setzero_si512(), _mm512_setzero_si512());
                       ^~~~~~~~~~~~~~~~~~~
                       _mm512_4dpwssd_epi32
      /opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/checks/cpu_avx512_clx.c:6:17: error: incompatible types when initializing type ‘__m512i {aka __vector(8) long long int}’ using type ‘int’
      cc1: all warnings being treated as errors

      CCompilerOpt.feature_test[1458] : testing failed
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx512ifma -mavx512vbmi)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx512ifma -mavx512vbmi'
      CCompilerOpt.feature_test[1444] : testing feature 'AVX512_CNL' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512ifma -mavx512vbmi)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq -mavx512ifma -mavx512vbmi -Werror'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx512er -mavx512pf)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx512er -mavx512pf'
      CCompilerOpt.feature_test[1444] : testing feature 'AVX512_KNL' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512er -mavx512pf)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512er -mavx512pf -Werror'
      CCompilerOpt.cc_test_flags[999] : testing flags (-mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq'
      CCompilerOpt.feature_test[1444] : testing feature 'AVX512_KNM' with flags (-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512er -mavx512pf -mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512er -mavx512pf -mavx5124fmaps -mavx5124vnniw -mavx512vpopcntdq -Werror'
      CCompilerOpt.__init__[1695] : skip features (SSE3 SSE2 SSE) since its part of baseline
      CCompilerOpt.__init__[1699] : initialize targets groups
      CCompilerOpt.__init__[1701] : parse target group simd_test
      CCompilerOpt._parse_target_tokens[1910] : skip targets (VSX2 FMA4 VSX NEON VSX3 XOP ASIMD) not part of baseline or dispatch-able features
      CCompilerOpt._parse_policy_not_keepbase[2022] : skip baseline features (SSE2)
      CCompilerOpt.generate_dispatch_header[2236] : generate CPU dispatch header: (build/src.linux-x86_64-3.8/numpy/distutils/include/npy_cpu_dispatch_config.h)
      CCompilerOpt.feature_extra_checks[1519] : Testing extra checks for feature 'AVX512F' (AVX512F_REDUCE)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -Werror'
      CCompilerOpt.feature_extra_checks[1519] : Testing extra checks for feature 'AVX512_SKX' (AVX512BW_MASK AVX512DQ_MASK)
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror'
      C compiler: gcc -pthread -B /opt/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC

      compile options: '-I/opt/anaconda3/include/python3.8 -c'
      extra options: '-msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq -Werror'
      Detected changes on compiler optimizations, force rebuilding
      customize IntelEM64TFCompiler
      Could not locate executable ifort
      Could not locate executable efort
      Could not locate executable efc
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-bi9qcv0t/kdelf_c9ee97f69081414e9e6db73bac74370c/setup.py", line 30, in <module>
          setup(configuration=configuration,
        File "/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/core.py", line 169, in setup
          return old_setup(**new_attr)
        File "/opt/anaconda3/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
          return distutils.core.setup(**attrs)
        File "/opt/anaconda3/lib/python3.8/distutils/core.py", line 148, in setup
          dist.run_commands()
        File "/opt/anaconda3/lib/python3.8/distutils/dist.py", line 966, in run_commands
          self.run_command(cmd)
        File "/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/command/install.py", line 60, in run
          r = self.setuptools_run()
        File "/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/command/install.py", line 34, in setuptools_run
          return distutils_install.run(self)
        File "/opt/anaconda3/lib/python3.8/distutils/command/install.py", line 545, in run
          self.run_command('build')
        File "/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/command/build.py", line 61, in run
          old_build.run(self)
        File "/opt/anaconda3/lib/python3.8/distutils/command/build.py", line 135, in run
          self.run_command(cmd_name)
        File "/opt/anaconda3/lib/python3.8/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/opt/anaconda3/lib/python3.8/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/command/build_ext.py", line 274, in run
          fcompiler.customize(self.distribution)
        File "/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/fcompiler/__init__.py", line 457, in customize
          self.find_executables()
        File "/opt/anaconda3/lib/python3.8/site-packages/numpy/distutils/fcompiler/__init__.py", line 346, in find_executables
          raise CompilerNotFound('%s: f90 nor f77' % ctype)
      numpy.distutils.fcompiler.CompilerNotFound: intelem: f90 nor f77

      ########### EXT COMPILER OPTIMIZATION ###########
      Platform      :
        Architecture: x64
        Compiler    : gcc

      CPU baseline  :
        Requested   : 'min'
        Enabled     : SSE SSE2 SSE3
        Flags       : -msse -msse2 -msse3
        Extra checks: none

      CPU dispatch  :
        Requested   : 'max -xop -fma4'
        Enabled     : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CNL
        Generated   : none
      CCompilerOpt._cache_write[796] : write cache to path -> /tmp/pip-install-bi9qcv0t/kdelf_c9ee97f69081414e9e6db73bac74370c/build/temp.linux-x86_64-3.8/ccompiler_opt_cache_ext.py
      [end of output]

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

× Encountered error while trying to install package.
╰─> kdeLF

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
yuanzunli commented 2 years ago

@alessandropeca It seems that the build did not find the ifort. Let me upload a new .whl file to the PiPy web tomorrow. You can try "pip install -U kdeL" then.

yuanzunli commented 2 years ago

@alessandropeca Please try "pip install -U kdeLF" now on your ubuntu.

alessandropeca commented 2 years ago

@yuanzunli It seems now it is installed, I got the following message: Successfully installed kdeLF-1.0.7 However, trying to test it with python -m kdeLF.test_kdeLF I get a module import error:

Traceback (most recent call last):
  File "/opt/anaconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/anaconda3/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Data/home/apeca/kdeLF/kdeLF/test_kdeLF.py", line 27, in <module>
    from kdeLF import kdeLF
  File "/Data/home/apeca/kdeLF/kdeLF/kdeLF.py", line 11, in <module>
    import kdeLF.kde_fortran
ModuleNotFoundError: No module named 'kdeLF.kde_fortran'

Or, trying to import it manually within python I can import the module kdeLF but not kdeLF.kde_fortran:

Python 3.8.8 (default, Apr 13 2021, 19:58:26) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import kdeLF
>>> import kdeLF.kde_fortran
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'kdeLF.kde_fortran'
yuanzunli commented 2 years ago

@alessandropeca How about "python3 -m kdeLF.test_kdeLF"? The correct using of kdeLF is "from kdeLF import kdeLF".

alessandropeca commented 2 years ago

@yuanzunli "python" in my case calls the python version I used to install kdeLF, which is actually anaconda python. If I do import kdeLF it does not show errors, meaning that I installed kdeLF in that python. However, it shows an error when I do import kdeLF.kde_fortran. It seems like there is something wrong with the module kdeLF.kde_fortran.

yuanzunli commented 2 years ago

@alessandropeca

H0,Om0 = 71, 0.27
flux,alpha= 0.03950732, 0.75 
Mpc=3.0857E+022
c=299792.458

import numpy as np
from astropy.cosmology import FlatLambdaCDM
cosmo = FlatLambdaCDM(H0=H0, Om0=Om0)
##%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
## your own f_lim function : 
def f_lim(z):
    St=flux
    dist=cosmo.luminosity_distance(z)
    ans=dist.value
    return np.log10(4*np.pi*(ans*Mpc)**2*St*1E-26/(1.0+z)**(1.0-alpha)) 

from kdeLF import kdeLF
test=kdeLF.KdeLF(sample_file='test_sample.dat',solid_angle=0.45565237,H0=H0, Om0=Om0,zbin=[0.0,0.2],f_lim=f_lim,adaptive=False)
test.get_optimal_h(initial_bandwidths=[0.15,0.15])
test.get_lgLF()

Alternatively, you may run the code above manually using the data "test_sample.txt I uploaded". test_sample.txt

yuanzunli commented 2 years ago

@yuanzunli "python" in my case calls the python version I used to install kdeLF, which is actually anaconda python. If I do import kdeLF it does not show errors, meaning that I installed kdeLF in that python. However, it shows an error when I do import kdeLF.kde_fortran. It seems like there is something wrong with the module kdeLF.kde_fortran.

It seems that the module kdeLF.kde_fortran" does not work in your platform, although kdeLF was "correctly installed". In my computer, import kdeLF.kde_fortran is all right. I think one reason may be your Ubuntu version is old (18). May be I can upload another version .whl file.

yuanzunli commented 2 years ago

@alessandropeca Another solution is that we seed one more .whl files to you privately, you can install the whl file and make test, until you find the right version. I ask Wenjie to contact with you. @Ban13

alessandropeca commented 2 years ago

@yuanzunli thank you, I am ok with any solution. If you give me a .whl file, I will need instructions to use it.

alessandropeca commented 2 years ago

Hi @yuanzunli @Ban13,

The issue is now solved. The problem was in the NumPy library. I had the 1.20.1 version, which is not so old but apparently was causing the issues. Now, with NumPy 1.22.3 the code works in mu Ubuntu 18.

The issues remain in my Apple M1 computer. The problem is related to the Intel compiler, which cannot be installed on the M1 chip. So actually there is no solution for this.

Thank you for your help.