<p dir="auto">$ python --version<br>
Python 3.7.0</p>
<p dir="auto">$ pip install numpy<br>
...<br>
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;<strong>file</strong>='/tmp/pip-install-0jx06uto/numpy/setup.py';f=getattr(tokenize, 'open', open)(<strong>file</strong>);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, <strong>file</strong>, 'exec'))" install --record /tmp/pip-record-b23lp18j/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-0jx06uto/numpy/</p>
<p dir="auto">Am using Python 3.6.2 in MSYS2. The installation is unable to build the wheel:</p>
<blockquote>
<p dir="auto">Running setup.py bdist_wheel for numpy ... error</p>
</blockquote>
<p dir="auto">Then many pages are printed with the output of command setup.py bdist_wheel with warnings such as:</p>
<blockquote>
<p dir="auto">x86_64-pc-msys-gcc: _configtest.c<br>
_configtest.c:1:5: warning: conflicting types for built-in function ‘sinf’<br>
int sinf (void);<br>
^~~~</p>
</blockquote>
<p dir="auto">After that it tries to run other commands with setup.py and it also fails:</p>
<blockquote>
<hr>
<p dir="auto">Failed building wheel for numpy<br>
Running setup.py clean for numpy<br>
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;<strong>file</strong>='/tmp/pip-build-pcj9wcf2/numpy/setup.py';f=getattr(tokenize, 'open', open)(<strong>file</strong>);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, <strong>file</strong>, 'exec'))" clean --all:<br>
Running from numpy source directory.</p>
<p dir="auto"><code class="notranslate">setup.py clean</code> is not supported, use one of the following instead:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- `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)"><pre class="notranslate"><code class="notranslate">- `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)
</code></pre></div>
<p dir="auto">Add <code class="notranslate">--force</code> to your command to use it anyway if you must (unsupported).</p>
<hr>
<p dir="auto">Failed cleaning build dir for numpy<br>
Failed to build numpy<br>
Installing collected packages: numpy<br>
Running setup.py install for numpy ... error</p>
</blockquote>