<p dir="auto">After upgrading from numpy version 1.16.2 to 1.16.3, <code class="notranslate">f2py -c ... --fcompiler=intelem</code> fails with <code class="notranslate">CompilerNotFound</code>. Rolling back to version 1.16.2 everything works as expected.</p>
<p dir="auto">This doesn't happen with <code class="notranslate">--fcompiler=gnu95</code> which works on both versions.</p>
<p dir="auto">Just prior to the traceback I get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="customize IntelEM64TCCompiler using build_ext
customize IntelEM64TFCompiler
Found executable /opt/intel/compilers_and_libraries_2018.5.231/mac/bin/intel64/ifort
Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0.5.231 Build 20180823
Copyright (C) 1985-2018 Intel Corporation.  All rights reserved."><pre class="notranslate"><code class="notranslate">customize IntelEM64TCCompiler using build_ext
customize IntelEM64TFCompiler
Found executable /opt/intel/compilers_and_libraries_2018.5.231/mac/bin/intel64/ifort
Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0.5.231 Build 20180823
Copyright (C) 1985-2018 Intel Corporation.  All rights reserved.
</code></pre></div>

<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;/Users/shahar/miniconda3/bin/f2py&quot;, line 10, in &lt;module&gt;
    sys.exit(main())
  File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/f2py/f2py2e.py&quot;, line 683, in main
    run_compile()
  File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/f2py/f2py2e.py&quot;, line 650, in run_compile
    setup(ext_modules=[ext])
  File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/core.py&quot;, line 171, in setup
    return old_setup(**new_attr)
  File &quot;/Users/shahar/miniconda3/lib/python3.7/distutils/core.py&quot;, line 148, in setup
    dist.run_commands()
  File &quot;/Users/shahar/miniconda3/lib/python3.7/distutils/dist.py&quot;, line 966, in run_commands
    self.run_command(cmd)
  File &quot;/Users/shahar/miniconda3/lib/python3.7/distutils/dist.py&quot;, line 985, in run_command
    cmd_obj.run()
  File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/command/build.py&quot;, line 47, in run
    old_build.run(self)
  File &quot;/Users/shahar/miniconda3/lib/python3.7/distutils/command/build.py&quot;, line 135, in run
    self.run_command(cmd_name)
  File &quot;/Users/shahar/miniconda3/lib/python3.7/distutils/cmd.py&quot;, line 313, in run_command
    self.distribution.run_command(command)
  File &quot;/Users/shahar/miniconda3/lib/python3.7/distutils/dist.py&quot;, line 985, in run_command
    cmd_obj.run()
  File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/command/build_ext.py&quot;, line 226, in run
    fcompiler.customize(self.distribution)
  File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 511, in customize
    get_flags('opt', oflags)
  File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 502, in get_flags
    flags.extend(getattr(self.flag_vars, tag))
  File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/environment.py&quot;, line 40, in __getattr__
    return self._get_var(name, conf_desc)
  File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/environment.py&quot;, line 56, in _get_var
    var = self._hook_handler(name, hook)
  File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 709, in _environment_hook
    return hook()
  File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/intel.py&quot;, line 128, in get_flags_opt
    v = self.get_version()
  File &quot;/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 432, in get_version
    raise CompilerNotFound()
numpy.distutils.fcompiler.CompilerNotFound"><pre class="notranslate"><span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>):
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/bin/f2py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">10</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>
    <span class="pl-s1">sys</span>.<span class="pl-en">exit</span>(<span class="pl-en">main</span>())
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/f2py/f2py2e.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">683</span>, <span class="pl-s1">in</span> <span class="pl-s1">main</span>
    <span class="pl-en">run_compile</span>()
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/f2py/f2py2e.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">650</span>, <span class="pl-s1">in</span> <span class="pl-s1">run_compile</span>
    <span class="pl-en">setup</span>(<span class="pl-s1">ext_modules</span><span class="pl-c1">=</span>[<span class="pl-s1">ext</span>])
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/core.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">171</span>, <span class="pl-s1">in</span> <span class="pl-s1">setup</span>
    <span class="pl-k">return</span> <span class="pl-en">old_setup</span>(<span class="pl-c1">**</span><span class="pl-s1">new_attr</span>)
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/distutils/core.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">148</span>, <span class="pl-s1">in</span> <span class="pl-s1">setup</span>
    <span class="pl-s1">dist</span>.<span class="pl-en">run_commands</span>()
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/distutils/dist.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">966</span>, <span class="pl-s1">in</span> <span class="pl-s1">run_commands</span>
    <span class="pl-s1">self</span>.<span class="pl-en">run_command</span>(<span class="pl-s1">cmd</span>)
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/distutils/dist.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">985</span>, <span class="pl-s1">in</span> <span class="pl-s1">run_command</span>
    <span class="pl-s1">cmd_obj</span>.<span class="pl-en">run</span>()
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/command/build.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">47</span>, <span class="pl-s1">in</span> <span class="pl-s1">run</span>
    <span class="pl-s1">old_build</span>.<span class="pl-en">run</span>(<span class="pl-s1">self</span>)
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/distutils/command/build.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">135</span>, <span class="pl-s1">in</span> <span class="pl-s1">run</span>
    <span class="pl-s1">self</span>.<span class="pl-en">run_command</span>(<span class="pl-s1">cmd_name</span>)
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/distutils/cmd.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">313</span>, <span class="pl-s1">in</span> <span class="pl-s1">run_command</span>
    <span class="pl-s1">self</span>.<span class="pl-s1">distribution</span>.<span class="pl-en">run_command</span>(<span class="pl-s1">command</span>)
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/distutils/dist.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">985</span>, <span class="pl-s1">in</span> <span class="pl-s1">run_command</span>
    <span class="pl-s1">cmd_obj</span>.<span class="pl-en">run</span>()
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/command/build_ext.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">226</span>, <span class="pl-s1">in</span> <span class="pl-s1">run</span>
    <span class="pl-s1">fcompiler</span>.<span class="pl-en">customize</span>(<span class="pl-s1">self</span>.<span class="pl-s1">distribution</span>)
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">511</span>, <span class="pl-s1">in</span> <span class="pl-s1">customize</span>
    <span class="pl-en">get_flags</span>(<span class="pl-s">'opt'</span>, <span class="pl-s1">oflags</span>)
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">502</span>, <span class="pl-s1">in</span> <span class="pl-s1">get_flags</span>
    <span class="pl-s1">flags</span>.<span class="pl-en">extend</span>(<span class="pl-en">getattr</span>(<span class="pl-s1">self</span>.<span class="pl-s1">flag_vars</span>, <span class="pl-s1">tag</span>))
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/environment.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">40</span>, <span class="pl-s1">in</span> <span class="pl-s1">__getattr__</span>
    <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">_get_var</span>(<span class="pl-s1">name</span>, <span class="pl-s1">conf_desc</span>)
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/environment.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">56</span>, <span class="pl-s1">in</span> <span class="pl-s1">_get_var</span>
    <span class="pl-s1">var</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">_hook_handler</span>(<span class="pl-s1">name</span>, <span class="pl-s1">hook</span>)
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">709</span>, <span class="pl-s1">in</span> <span class="pl-s1">_environment_hook</span>
    <span class="pl-k">return</span> <span class="pl-en">hook</span>()
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/intel.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">128</span>, <span class="pl-s1">in</span> <span class="pl-s1">get_flags_opt</span>
    <span class="pl-s1">v</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">get_version</span>()
  <span class="pl-v">File</span> <span class="pl-s">"/Users/shahar/miniconda3/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">432</span>, <span class="pl-s1">in</span> <span class="pl-s1">get_version</span>
    <span class="pl-k">raise</span> <span class="pl-v">CompilerNotFound</span>()
<span class="pl-s1">numpy</span>.<span class="pl-s1">distutils</span>.<span class="pl-s1">fcompiler</span>.<span class="pl-v">CompilerNotFound</span></pre></div>
<h3 dir="auto">Numpy/Python version information:</h3>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.16.3 3.7.2 | packaged by conda-forge | (default, Mar 19 2019, 20:46:22) 
[Clang 4.0.1 (tags/RELEASE_401/final)]"><pre class="notranslate"><code class="notranslate">1.16.3 3.7.2 | packaged by conda-forge | (default, Mar 19 2019, 20:46:22) 
[Clang 4.0.1 (tags/RELEASE_401/final)]
</code></pre></div>
<p dir="auto">Hi,<br>
I have intel compilers installed, but get this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Found executable /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/icc customize IntelEM64TFCompiler
Found executable /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/ifort
Traceback (most recent call last):
File &quot;setup.py&quot;, line 418, in &lt;module&gt;setup_package()
File &quot;setup.py&quot;, line 414, in setup_packagesetup(**metadata)
File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/core.py&quot;, line 169, in setupreturn old_setup(**new_attr)
File &quot;/usr/lib/python3.6/site-packages/setuptools/__init__.py&quot;, line 129, in setupreturn distutils.core.setup(**attrs)
File &quot;/usr/lib/python3.6/distutils/core.py&quot;, line 148, in setupdist.run_commands()
File &quot;/usr/lib/python3.6/distutils/dist.py&quot;, line 955, in run_commandsself.run_command(cmd)
File &quot;/usr/lib/python3.6/distutils/dist.py&quot;, line 974, in run_commandcmd_obj.run()
File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/build_clib.py&quot;, line 75, in runself.run_command('build_src')
File &quot;/usr/lib/python3.6/distutils/cmd.py&quot;, line 313, in run_commandself.distribution.run_command(command)
File &quot;/usr/lib/python3.6/distutils/dist.py&quot;, line 974, in run_commandcmd_obj.run()
File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py&quot;, line 148, in runself.build_sources()
File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py&quot;, line 165, in build_sourcesself.build_extension_sources(ext)
File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py&quot;, line 324, in build_extension_sourcessources = self.generate_sources(sources, ext)
File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py&quot;, line 377, in generate_sourcessource = func(extension, build_dir)
File &quot;scipy/_lib/setup.py&quot;, line 32, in get_messagestream_configif config_cmd.check_func('open_memstream', decl=True, call=True):
File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/config.py&quot;, line 312, in check_funcself._check_compiler()
File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/command/config.py&quot;, line 83, in _check_compilerself.fcompiler.customize(self.distribution)
File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 499, in customizeget_flags('opt', oflags)
File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 490, in get_flagsflags.extend(getattr(self.flag_vars, tag))
File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/environment.py&quot;, line 39, in __getattr__return self._get_var(name, conf_desc)
File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/environment.py&quot;, line 53, in _get_varvar = self._hook_handler(name, hook)
File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 697, in _environment_hookreturn hook()
File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/intel.py&quot;, line 125, in get_flags_optv = self.get_version()
File &quot;/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py&quot;, line 430, in get_versionraise CompilerNotFound()
numpy.distutils.fcompiler.CompilerNotFound"><pre class="notranslate"><code class="notranslate">Found executable /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/icc customize IntelEM64TFCompiler
Found executable /opt/intel/compilers_and_libraries_2018.1.163/linux/bin/intel64/ifort
Traceback (most recent call last):
File "setup.py", line 418, in &lt;module&gt;setup_package()
File "setup.py", line 414, in setup_packagesetup(**metadata)
File "/usr/lib/python3.6/site-packages/numpy/distutils/core.py", line 169, in setupreturn old_setup(**new_attr)
File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setupreturn distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 148, in setupdist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commandsself.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_commandcmd_obj.run()
File "/usr/lib/python3.6/site-packages/numpy/distutils/command/build_clib.py", line 75, in runself.run_command('build_src')
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_commandself.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_commandcmd_obj.run()
File "/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py", line 148, in runself.build_sources()
File "/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py", line 165, in build_sourcesself.build_extension_sources(ext)
File "/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py", line 324, in build_extension_sourcessources = self.generate_sources(sources, ext)
File "/usr/lib/python3.6/site-packages/numpy/distutils/command/build_src.py", line 377, in generate_sourcessource = func(extension, build_dir)
File "scipy/_lib/setup.py", line 32, in get_messagestream_configif config_cmd.check_func('open_memstream', decl=True, call=True):
File "/usr/lib/python3.6/site-packages/numpy/distutils/command/config.py", line 312, in check_funcself._check_compiler()
File "/usr/lib/python3.6/site-packages/numpy/distutils/command/config.py", line 83, in _check_compilerself.fcompiler.customize(self.distribution)
File "/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py", line 499, in customizeget_flags('opt', oflags)
File "/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py", line 490, in get_flagsflags.extend(getattr(self.flag_vars, tag))
File "/usr/lib/python3.6/site-packages/numpy/distutils/environment.py", line 39, in __getattr__return self._get_var(name, conf_desc)
File "/usr/lib/python3.6/site-packages/numpy/distutils/environment.py", line 53, in _get_varvar = self._hook_handler(name, hook)
File "/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py", line 697, in _environment_hookreturn hook()
File "/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/intel.py", line 125, in get_flags_optv = self.get_version()
File "/usr/lib/python3.6/site-packages/numpy/distutils/fcompiler/__init__.py", line 430, in get_versionraise CompilerNotFound()
numpy.distutils.fcompiler.CompilerNotFound
</code></pre></div>