<p dir="auto">After I checkout SciPy and run the tests as-is, I'm seeing &gt;50 test failures. The steps being followed are:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="conda create -n scipy python=3
conda install -y mkl numpy setuptools matplotlib cython pytest
git clone https://github.com/scipy/scipy
cd scipy
python setup.py build_ext --inplace
python runtests.py -v"><pre class="notranslate">conda create -n scipy python=3
conda install -y mkl numpy setuptools matplotlib cython pytest
git clone https://github.com/scipy/scipy
<span class="pl-c1">cd</span> scipy
python setup.py build_ext --inplace
python runtests.py -v</pre></div>
<p dir="auto">I have also tried:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="apt-get install -yq build-essential ca-certificates gcc gfortran git python3 python3-pip
pip3 install cython matplotlib mkl numpy pytest setuptools
git clone https://github.com/scipy/scipy
cd scipy
python setup.py build_ext --inplace
python runtests.py -v"><pre class="notranslate">apt-get install -yq build-essential ca-certificates gcc gfortran git python3 python3-pip
pip3 install cython matplotlib mkl numpy pytest setuptools
git clone https://github.com/scipy/scipy
<span class="pl-c1">cd</span> scipy
python setup.py build_ext --inplace
python runtests.py -v</pre></div>
<p dir="auto">These steps were followed in the continuumio/anaconda3 Docker image. I have also had similar luck trying to do this on OSX. For what it's worth, the OSX binaries from Conda output two failures when I run:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="python -c 'import scipy; scipy.test(&quot;full&quot;)'"><pre class="notranslate">python -c <span class="pl-s"><span class="pl-pds">'</span>import scipy; scipy.test("full")<span class="pl-pds">'</span></span></pre></div>
<p dir="auto">What is the right way to build SciPy in a way that passes all tests?</p>
<h3 dir="auto">Issue</h3>
<p dir="auto">I installed the latest github version of scikit learn 1.1.0 as of 24.01.2017 latest commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/scipy/scipy/commit/beb258ef9f9b76567f094984f5bfeed774e7e9eb/hovercard" href="https://github.com/scipy/scipy/commit/beb258ef9f9b76567f094984f5bfeed774e7e9eb"><tt>beb258e</tt></a> and I get undefined <code class="notranslate">symbol: _gfortran_stop_numeric_f08</code></p>
<p dir="auto">It seems that the error comes from an scikit-image, but it is due to scipy import problem.<br>
The issue is resolved when the release version 1.0.0 is installed</p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" from skimage import , transform"><pre class="notranslate"><code class="notranslate"> from skimage import , transform
</code></pre></div>
<h3 dir="auto">Error message:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ImportError: /anaconda/envs/py35/lib/python3.5/site-packages/scipy/special/_ufuncs.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _gfortran_stop_numeric_f08
"><pre class="notranslate"><code class="notranslate">ImportError: /anaconda/envs/py35/lib/python3.5/site-packages/scipy/special/_ufuncs.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _gfortran_stop_numeric_f08

</code></pre></div>
<p dir="auto">Traceback (most recent call last):<br>
File "travers.py", line 15, in <br>
from vis.visualization import visualize_saliency, overlay<br>
File "/anaconda/envs/py35/lib/python3.5/site-packages/vis/visualization/<strong>init</strong>.py", line 4, in <br>
from .activation_maximization import visualize_activation_with_losses<br>
File "/anaconda/envs/py35/lib/python3.5/site-packages/vis/visualization/activation_maximization.py", line 6, in <br>
from ..losses import ActivationMaximization<br>
File "/anaconda/envs/py35/lib/python3.5/site-packages/vis/losses.py", line 4, in <br>
from .utils import utils<br>
File "/anaconda/envs/py35/lib/python3.5/site-packages/vis/utils/utils.py", line 14, in <br>
from skimage import io, transform<br>
File "/anaconda/envs/py35/lib/python3.5/site-packages/skimage/transform/<strong>init</strong>.py", line 1, in <br>
from .hough_transform import (hough_line, hough_line_peaks,<br>
File "/anaconda/envs/py35/lib/python3.5/site-packages/skimage/transform/hough_transform.py", line 2, in <br>
from scipy import ndimage<br>
File "/anaconda/envs/py35/lib/python3.5/site-packages/scipy/ndimage/<strong>init</strong>.py", line 161, in <br>
from .filters import *<br>
File "/anaconda/envs/py35/lib/python3.5/site-packages/scipy/ndimage/filters.py", line 37, in <br>
from scipy.misc import doccer<br>
File "/anaconda/envs/py35/lib/python3.5/site-packages/scipy/misc/<strong>init</strong>.py", line 67, in <br>
from scipy.interpolate._pade import pade as _pade<br>
File "/anaconda/envs/py35/lib/python3.5/site-packages/scipy/interpolate/<strong>init</strong>.py", line 175, in <br>
from .interpolate import *<br>
File "/anaconda/envs/py35/lib/python3.5/site-packages/scipy/interpolate/interpolate.py", line 21, in <br>
import scipy.special as spec<br>
File "/anaconda/envs/py35/lib/python3.5/site-packages/scipy/special/<strong>init</strong>.py", line 639, in <br>
from ._ufuncs import *<br>
ImportError: /anaconda/envs/py35/lib/python3.5/site-packages/scipy/special/_ufuncs.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _gfortran_stop_numeric_f08</p>
<h3 dir="auto">Scipy/Numpy/Python version information:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;&lt;Output from 'import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)'&gt;&gt;"><pre class="notranslate"><code class="notranslate">&lt;&lt;Output from 'import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)'&gt;&gt;
</code></pre></div>
<p dir="auto">1.1.0.dev0+Unknown 1.14.0 sys.version_info(major=3, minor=5, micro=2, releaselevel='final', serial=0)</p>
<p dir="auto">scikit-image (0.13.1)</p>