Issue 1:
After I checkout SciPy and run the tests as-is, I'm seeing >50 test failures. The steps being followed are:

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

I have also tried:

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

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:

python -c 'import scipy; scipy.test("full")'

What is the right way to build SciPy in a way that passes all tests?

Issue 2:
Issue

I installed the latest github version of scikit learn 1.1.0 as of 24.01.2017 latest commit beb258e and I get undefined symbol: _gfortran_stop_numeric_f08

It seems that the error comes from an scikit-image, but it is due to scipy import problem.

The issue is resolved when the release version 1.0.0 is installed

Reproducing code example:

from skimage import , transform

Error message:

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

Traceback (most recent call last):

File "travers.py", line 15, in

from vis.visualization import visualize_saliency, overlay

File "/anaconda/envs/py35/lib/python3.5/site-packages/vis/visualization/init.py", line 4, in

from .activation_maximization import visualize_activation_with_losses

File "/anaconda/envs/py35/lib/python3.5/site-packages/vis/visualization/activation_maximization.py", line 6, in

from ..losses import ActivationMaximization

File "/anaconda/envs/py35/lib/python3.5/site-packages/vis/losses.py", line 4, in

from .utils import utils

File "/anaconda/envs/py35/lib/python3.5/site-packages/vis/utils/utils.py", line 14, in

from skimage import io, transform

File "/anaconda/envs/py35/lib/python3.5/site-packages/skimage/transform/init.py", line 1, in

from .hough_transform import (hough_line, hough_line_peaks,

File "/anaconda/envs/py35/lib/python3.5/site-packages/skimage/transform/hough_transform.py", line 2, in

from scipy import ndimage

File "/anaconda/envs/py35/lib/python3.5/site-packages/scipy/ndimage/init.py", line 161, in

from .filters import *

File "/anaconda/envs/py35/lib/python3.5/site-packages/scipy/ndimage/filters.py", line 37, in

from scipy.misc import doccer

File "/anaconda/envs/py35/lib/python3.5/site-packages/scipy/misc/init.py", line 67, in

from scipy.interpolate._pade import pade as _pade

File "/anaconda/envs/py35/lib/python3.5/site-packages/scipy/interpolate/init.py", line 175, in

from .interpolate import *

File "/anaconda/envs/py35/lib/python3.5/site-packages/scipy/interpolate/interpolate.py", line 21, in

import scipy.special as spec

File "/anaconda/envs/py35/lib/python3.5/site-packages/scipy/special/init.py", line 639, in

from ._ufuncs import *

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

Scipy/Numpy/Python version information:

<<Output from 'import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)'>>

1.1.0.dev0+Unknown 1.14.0 sys.version_info(major=3, minor=5, micro=2, releaselevel='final', serial=0)

scikit-image (0.13.1)