scipy / scipy

SciPy library main repository

Home Page:https://scipy.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trouble installing on apple silicon M1

hkennyv opened this issue Β· comments

EDIT: As of 2021-08-06, this solution seems to work for scipy 1.7.0 (native, not through rosetta):

brew install openblas
pip install cython pybind11 pythran numpy
OPENBLAS=$(brew --prefix openblas) CFLAGS="-falign-functions=8 ${CFLAGS}" pip install --no-use-pep517 scipy==1.7.0

Thanks goes to @lutzroder for the figuring out this solution

Hi there, I did not find any other issues related to this on here. I'm having some issues installing scipy on my M1 Macbook Air.

2020 Macbook Air M1
Mac OS Big Sur 11.0.1

khuynh@kmba:~ $ python3 --version
Python 3.9.1

Reproducing code example:

Install python3.9.1 on Mac OS through brew (natively, not x86):

brew install python@3.9

Install numpy (solution from this numpy issue):

OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install numpy --no-use-pep517

Install pandas and matplotlib

python3 -m pip install matplotlib pandas

Try to install scipy:

python3 -m pip install scipy

Error message:

Error output (after successfully installing numpy, pandas, matplotlib):

khuynh@kmba:~ $ python3 -m pip install scipy
Collecting scipy
  Using cached scipy-1.6.0.tar.gz (27.3 MB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/homebrew/opt/python@3.9/bin/python3.9 /opt/homebrew/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-lm96mgjq/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel 'setuptools<=51.0.0' 'Cython>=0.29.18' 'numpy==1.16.5; python_version=='"'"'3.7'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"'' 'numpy==1.19.3; python_version=='"'"'3.9'"'"'' 'numpy; python_version>='"'"'3.10'"'"'' 'pybind11>=2.4.3'
       cwd: None
  Complete output (226 lines):
  Ignoring numpy: markers 'python_version == "3.7"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.8"' don't match your environment
  Ignoring numpy: markers 'python_version >= "3.10"' don't match your environment
  Collecting numpy==1.19.3
    Using cached numpy-1.19.3.zip (7.3 MB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: /opt/homebrew/opt/python@3.9/bin/python3.9 /opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/tmpbdr967n3
           cwd: /private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1
      Complete output (209 lines):
      Running from numpy source directory.
      setup.py:480: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
        run_build = parse_setuppy_commands()
      Processing numpy/random/_bounded_integers.pxd.in
      Processing numpy/random/_philox.pyx
      Processing numpy/random/_bounded_integers.pyx.in
      Processing numpy/random/_sfc64.pyx
      Processing numpy/random/_mt19937.pyx
      Processing numpy/random/bit_generator.pyx
      Processing numpy/random/mtrand.pyx
      Processing numpy/random/_generator.pyx
      Processing numpy/random/_pcg64.pyx
      Processing numpy/random/_common.pyx
      Cythonizing sources
      blas_opt_info:
      blas_mkl_info:
      customize UnixCCompiler
        libraries mkl_rt not found in ['/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE

      blis_info:
        libraries blis not found in ['/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE

      openblas_info:
        libraries openblas not found in ['/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE

      atlas_3_10_blas_threads_info:
      Setting PTATLAS=ATLAS
        libraries tatlas not found in ['/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE

      atlas_3_10_blas_info:
        libraries satlas not found in ['/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE

      atlas_blas_threads_info:
      Setting PTATLAS=ATLAS
        libraries ptf77blas,ptcblas,atlas not found in ['/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE

      atlas_blas_info:
        libraries f77blas,cblas,atlas not found in ['/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE

      accelerate_info:
        libraries accelerate not found in ['/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
      Library accelerate was not found. Ignoring
        libraries veclib not found in ['/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
      Library veclib was not found. Ignoring
        FOUND:
          extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
          extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
          define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]

        FOUND:
          extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
          extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
          define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]

      non-existing path in 'numpy/distutils': 'site.cfg'
      lapack_opt_info:
      lapack_mkl_info:
        libraries mkl_rt not found in ['/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE

      openblas_lapack_info:
        libraries openblas not found in ['/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE

      openblas_clapack_info:
        libraries openblas,lapack not found in ['/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE

      flame_info:
        libraries flame not found in ['/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib', '/usr/local/lib', '/usr/lib']
        NOT AVAILABLE

      atlas_3_10_threads_info:
      Setting PTATLAS=ATLAS
        libraries lapack_atlas not found in /opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib
        libraries tatlas,tatlas not found in /opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib
        libraries lapack_atlas not found in /usr/local/lib
        libraries tatlas,tatlas not found in /usr/local/lib
        libraries lapack_atlas not found in /usr/lib
        libraries tatlas,tatlas not found in /usr/lib
      <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
        NOT AVAILABLE

      atlas_3_10_info:
        libraries lapack_atlas not found in /opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib
        libraries satlas,satlas not found in /opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib
        libraries lapack_atlas not found in /usr/local/lib
        libraries satlas,satlas not found in /usr/local/lib
        libraries lapack_atlas not found in /usr/lib
        libraries satlas,satlas not found in /usr/lib
      <class 'numpy.distutils.system_info.atlas_3_10_info'>
        NOT AVAILABLE

      atlas_threads_info:
      Setting PTATLAS=ATLAS
        libraries lapack_atlas not found in /opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib
        libraries ptf77blas,ptcblas,atlas not found in /opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib
        libraries lapack_atlas not found in /usr/local/lib
        libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
        libraries lapack_atlas not found in /usr/lib
        libraries ptf77blas,ptcblas,atlas not found in /usr/lib
      <class 'numpy.distutils.system_info.atlas_threads_info'>
        NOT AVAILABLE

      atlas_info:
        libraries lapack_atlas not found in /opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib
        libraries f77blas,cblas,atlas not found in /opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib
        libraries lapack_atlas not found in /usr/local/lib
        libraries f77blas,cblas,atlas not found in /usr/local/lib
        libraries lapack_atlas not found in /usr/lib
        libraries f77blas,cblas,atlas not found in /usr/lib
      <class 'numpy.distutils.system_info.atlas_info'>
        NOT AVAILABLE

        FOUND:
          extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/vecLib.framework/Headers']
          extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
          define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]

      /opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
        warnings.warn(msg)
      running dist_info
      running build_src
      build_src
      building py_modules sources
      creating build
      creating build/src.macosx-11-arm64-3.9
      creating build/src.macosx-11-arm64-3.9/numpy
      creating build/src.macosx-11-arm64-3.9/numpy/distutils
      building library "npymath" sources
      Traceback (most recent call last):
        File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
          main()
        File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 133, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 157, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 248, in run_setup
          super(_BuildMetaLegacyBackend,
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 142, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 508, in <module>
          setup_package()
        File "setup.py", line 500, in setup_package
          setup(**metadata)
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/core.py", line 169, in setup
          return old_setup(**new_attr)
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 165, in setup
          return distutils.core.setup(**attrs)
        File "/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
          dist.run_commands()
        File "/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
          self.run_command(cmd)
        File "/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-u2e50a1f/overlay/lib/python3.9/site-packages/setuptools/command/dist_info.py", line 31, in run
          egg_info.run()
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/egg_info.py", line 24, in run
          self.run_command("build_src")
        File "/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/build_src.py", line 144, in run
          self.build_sources()
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/build_src.py", line 155, in build_sources
          self.build_library_sources(*libname_info)
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/build_src.py", line 288, in build_library_sources
          sources = self.generate_sources(sources, (lib_name, build_info))
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/build_src.py", line 378, in generate_sources
          source = func(extension, build_dir)
        File "numpy/core/setup.py", line 658, in get_mathlib_info
          st = config_cmd.try_link('int main(void) { return 0;}')
        File "/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/command/config.py", line 241, in try_link
          self._check_compiler()
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/command/config.py", line 80, in _check_compiler
          self.fcompiler = new_fcompiler(compiler=self.fcompiler,
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py", line 880, in new_fcompiler
          compiler = get_default_fcompiler(plat, requiref90=requiref90,
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py", line 851, in get_default_fcompiler
          compiler_type =  _find_existing_fcompiler(matching_compiler_types,
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py", line 802, in _find_existing_fcompiler
          c.customize(dist)
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py", line 526, in customize
          linker_so_flags = self.flag_vars.linker_so
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/environment.py", line 37, in __getattr__
          return self._get_var(name, conf_desc)
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/environment.py", line 53, in _get_var
          var = self._hook_handler(name, hook)
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/__init__.py", line 705, in _environment_hook
          return hook()
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/gnu.py", line 346, in get_flags_linker_so
          flags = GnuFCompiler.get_flags_linker_so(self)
        File "/private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-install-rxxkdkwc/numpy_f22187e5fa894f3cab417c6a812e04c1/numpy/distutils/fcompiler/gnu.py", line 136, in get_flags_linker_so
          os.environ['MACOSX_DEPLOYMENT_TARGET'] = target
        File "/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 684, in __setitem__
          value = self.encodevalue(value)
        File "/opt/homebrew/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 756, in encode
          raise TypeError("str expected, not %s" % type(value).__name__)
      TypeError: str expected, not int
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /opt/homebrew/opt/python@3.9/bin/python3.9 /opt/homebrew/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/tmpbdr967n3 Check the logs for full command output.
  ----------------------------------------
ERROR: Command errored out with exit status 1: /opt/homebrew/opt/python@3.9/bin/python3.9 /opt/homebrew/lib/python3.9/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-build-env-lm96mgjq/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel 'setuptools<=51.0.0' 'Cython>=0.29.18' 'numpy==1.16.5; python_version=='"'"'3.7'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"'' 'numpy==1.19.3; python_version=='"'"'3.9'"'"'' 'numpy; python_version>='"'"'3.10'"'"'' 'pybind11>=2.4.3' Check the logs for full command output.

Scipy/Numpy/Python version information:

>>> import sys, numpy; print(numpy.__version__, sys.version_info)
1.19.5 sys.version_info(major=3, minor=9, micro=1, releaselevel='final', serial=0)

+1 I am experiencing the same issue.

+1 the whole point of this new M1 mac is to do ML and scipy is pretty integral..

FWIW, I am able to get it to "install" now using the following:

$ pip install python
$ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install numpy --no-use-pep517
$ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install scipy --no-use-pep517

but i get a segmentation fault when doing most things

$ python
Python 3.9.1 (default, Jan  5 2021, 21:58:48)
[Clang 12.0.0 (clang-1200.0.32.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy.integrate import quad
[1]    27600 segmentation fault  python

FWIW, I am able to get it to "install" now using the following:

$ pip install python
$ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install numpy --no-use-pep517
$ OPENBLAS="$(brew --prefix openblas)" MACOSX_DEPLOYMENT_TARGET=11.1 python3 -m pip install scipy --no-use-pep517

but i get a segmentation fault when doing most things

$ python
Python 3.9.1 (default, Jan  5 2021, 21:58:48)
[Clang 12.0.0 (clang-1200.0.32.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy.integrate import quad
[1]    27600 segmentation fault  python

Even with doing this, I'm not able to install scipy, I got an error. end of the error message:

[...]
  ########### CLIB COMPILER OPTIMIZATION ###########
  Platform      :
    Architecture: aarch64
    Compiler    : clang
  
  CPU baseline  :
    Requested   : 'min'
    Enabled     : none
    Flags       : none
    Extra checks: none
  
  CPU dispatch  :
    Requested   : 'max -xop -fma4'
    Enabled     : none
    Generated   : none
  CCompilerOpt._cache_write[796] : write cache to path -> /private/var/folders/62/zym7btb12r3r0000gn/T/pip-install-sheso46s/scipy_e440212dfe094281888db6cf92b9cb53/build/temp.macosx-10.14.6-arm64-3.8/ccompiler_opt_cache_clib.py
  ----------------------------------------
ERROR: Command errored out with exit status 1: 
[...]

Yes we are still trying to figure out how to compile on that architecture. Many people tried alternative ways to do it but got limited success. We'll keep this post up to date when we have more info.

Just FYI, the actual error is slightly earlier in the snipped part of the logs

Workaround building from source:

/opt/homebrew/bin/brew install openblas
export OPENBLAS=$(/opt/homebrew/bin/brew --prefix openblas)
export CFLAGS="-falign-functions=8 ${CFLAGS}"
git clone https://github.com/scipy/scipy.git
cd scipy
/opt/homebrew/bin/pip install .
commented

@lutzroeder
Hi , I got this error:

numpy.distutils.system_info.NotFoundError: No BLAS/LAPACK libraries found. Note: Accelerate is no longer supported.
To build Scipy from sources, BLAS & LAPACK libraries need to be installed.
See site.cfg.example in the Scipy source directory and
https://docs.scipy.org/doc/scipy/reference/building/index.html for details.

@huwei1024 are you running the arm64 version of brew to install openblas and Python arm64.

~: /opt/homebrew/bin/brew --version
Homebrew 3.0.0
Homebrew/homebrew-core (git revision cdf6a3; last commit 2021-02-09)
Homebrew/homebrew-cask (git revision e65146; last commit 2021-02-09)
~: /opt/homebrew/bin/pip --version
pip 21.0.1 from /opt/homebrew/lib/python3.9/site-packages/pip (python 3.9)
~: file /opt/homebrew/bin/python3
/opt/homebrew/bin/python3: Mach-O 64-bit executable arm64
commented

yes, i think so.

Homebrew 3.0.0-35-g78f54b0-dirty

commented

huwei@HuweideMBP-2 scipy % /opt/homebrew/bin/brew --version
Homebrew 3.0.0-35-g78f54b0-dirty
Homebrew/homebrew-core (git revision 2dcaa6; last commit 2021-02-08)
Homebrew/homebrew-cask (git revision 752b7; last commit 2021-02-08)

huwei@HuweideMBP-2 scipy % /usr/local/bin/pip3.9 --version
pip 21.0.1 from /Users/huwei/.local/lib/python3.9/site-packages/pip (python 3.9)

huwei@HuweideMBP-2 scipy % file /usr/local/bin/python3
/usr/local/bin/python3: Mach-O 64-bit executable arm64

i can confirm @lutzroeder's method was successful on my machine (MBA M1) πŸŽ‰. I also no longer get a segmentation fault when doing some things (see my previous comment).

(this is all native, not x86_64 emulated under rosetta)

khuynh@kmba:temp/scipy β€Ήmasterβ€Ί$ OPENBLAS=$(brew --prefix openblas) CFLAGS="-falign-functions=8 ${CFLAGS}" pip install .
Processing /Users/khuynh/me/develop/temp/scipy
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: numpy>=1.16.5 in /Users/khuynh/.pyenv/versions/3.9.1/lib/python3.9/site-packages (from scipy==1.7.0.dev0+05ce902) (1.20.0)
Building wheels for collected packages: scipy
  Building wheel for scipy (PEP 517) ... done
  Created wheel for scipy: filename=scipy-1.7.0.dev0+05ce902-cp39-cp39-macosx_11_0_arm64.whl size=18775040 sha256=799488d6e2104d11157c57bd659e48253ba2bacc5326955bd1d0e5301a45057e
  Stored in directory: /private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-ephem-wheel-cache-90wyixpz/wheels/8c/c5/0e/f008d3e2cafdbfa0cbfbc9bce17c46d5dbca5079f87c36b380
Successfully built scipy
Installing collected packages: scipy
Successfully installed scipy-1.7.0.dev0+05ce902
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the '/Users/khuynh/.pyenv/versions/3.9.1/bin/python3.9 -m pip install --upgrade pip' command.
khuynh@kmba:temp/scipy β€Ήmasterβ€Ί$
khuynh@kmba:temp/scipy β€Ήmasterβ€Ί$ brew --version
Homebrew 3.0.0
Homebrew/homebrew-core (git revision ec6259; last commit 2021-02-06)
Homebrew/homebrew-cask (git revision 6e099; last commit 2021-02-06)
khuynh@kmba:temp/scipy β€Ήmasterβ€Ί$ python3 --version
Python 3.9.1

i can confirm @lutzroeder's method was successful on my machine (MBA M1) πŸŽ‰. I also no longer get a segmentation fault when doing some things (see my previous comment).

(this is all native, not x86_64 emulated under rosetta)

khuynh@kmba:temp/scipy β€Ήmasterβ€Ί$ OPENBLAS=$(brew --prefix openblas) CFLAGS="-falign-functions=8 ${CFLAGS}" pip install .
Processing /Users/khuynh/me/develop/temp/scipy
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: numpy>=1.16.5 in /Users/khuynh/.pyenv/versions/3.9.1/lib/python3.9/site-packages (from scipy==1.7.0.dev0+05ce902) (1.20.0)
Building wheels for collected packages: scipy
  Building wheel for scipy (PEP 517) ... done
  Created wheel for scipy: filename=scipy-1.7.0.dev0+05ce902-cp39-cp39-macosx_11_0_arm64.whl size=18775040 sha256=799488d6e2104d11157c57bd659e48253ba2bacc5326955bd1d0e5301a45057e
  Stored in directory: /private/var/folders/jc/hrnrv7f1059b2dx2kvsf4wk80000gn/T/pip-ephem-wheel-cache-90wyixpz/wheels/8c/c5/0e/f008d3e2cafdbfa0cbfbc9bce17c46d5dbca5079f87c36b380
Successfully built scipy
Installing collected packages: scipy
Successfully installed scipy-1.7.0.dev0+05ce902
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the '/Users/khuynh/.pyenv/versions/3.9.1/bin/python3.9 -m pip install --upgrade pip' command.
khuynh@kmba:temp/scipy β€Ήmasterβ€Ί$
khuynh@kmba:temp/scipy β€Ήmasterβ€Ί$ brew --version
Homebrew 3.0.0
Homebrew/homebrew-core (git revision ec6259; last commit 2021-02-06)
Homebrew/homebrew-cask (git revision 6e099; last commit 2021-02-06)
khuynh@kmba:temp/scipy β€Ήmasterβ€Ί$ python3 --version
Python 3.9.1

still got an error on my M1 MBP... I use a virtual env with tensorflow for mac os.
EDIT: I wonder this is because I do not user python from homebrew. Any idea about this? I use python from xcode

Hey,
I'm not able to install it using @lutzroeder 's method. I get the following error:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: An exception occurred within a child process:
  CompilerSelectionError: gcc cannot be built with any available compilers.
Install GNU's GCC:
  brew install gcc

Also brew install gcc don't work either

@redmlr Did you recently update MacOS? If so, you need to re-install CommandLineTools for each point update.
xcode-select --install

I could get SciPy to install with @lutzroeder's method, but still get the segfault when I import it.

@lingwhatics Yes you were right, I installed Xcode-CommandLineTools again, but after following the steps, an error occurred while building the wheel.

ERROR: Failed building wheel for scipy
Failed to build scipy
ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly

My command before the error was: (tensorM1) me@Air-von-me scipy % pip install . because I need scipy in a Conda environment.
My macOS version is: 11.2.1

@lingwhatics Yes you were right, I installed Xcode-CommandLineTools again, but after following the steps, an error occurred while building the wheel.

ERROR: Failed building wheel for scipy
Failed to build scipy
ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly

My command before the error was: (tensorM1) me@Air-von-me scipy % pip install . because I need scipy in a Conda environment.
My macOS version is: 11.2.1

you can try pip install . --no-use-pep-517
However i still got an other error with using this.

@redmlr i believe conda already provides native-built wheels through mini forge. See this comment on the relevant numpy issue.

From a maintainer perspective I'd like to express my sympathy for all the difficulties going on in this thread. There are a lot of scipy maintainers that use macOS for their work (including me), and we're very much interested in stability and functionality for the macOS platform.
However at the moment (at least in my own case), solving these M1 related issues is difficult. Many of the maintainers won't possess machines of this type, or even have the most up to date OS installed. Moreover, the continuous integration platforms that are available don't offer the ability to test on this type of setup. This severely limits our ability to solve these issues, limiting our help to back-and-forth messaging with users who do have these setups. Thank you for being patient in this area, we'll eventually get through this period of difficulty.

@redmlr i believe conda already provides native-built wheels through mini forge. See this comment on the relevant numpy issue.

@hkennyv I'm already using a mini forge environment to run M1 accelerated TensorFlow

@redmlr are you able to install scipy through conda instead of pip?

Edit: @climatebrad corrected me, it is miniforge that has the working pre-built wheels. Thank you!

Note that it's not the Anaconda-distributed conda that works but the community-driven miniforge project from conda-forge that works on aarch64. e.g. https://formulae.brew.sh/cask/miniforge

@pierreia Could you try python -m pip install . on scipy folder?
(with openblas installed, OPENBLAS and CFLAGS variables set as mentioned above).

I successfully installed scipy with m1 mac on tensorflow_macos virtual environment.

Python 3.8.2 (default, Nov  4 2020, 21:23:28)
[Clang 12.0.0 (clang-1200.0.32.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.processor()
'arm'
>>> import scipy
>>>

@pierreia Could you try python -m pip install . on scipy folder?
(with openblas installed, OPENBLAS and CFLAGS variables set as mentioned above).

I successfully installed scipy with m1 mac on tensorflow_macos virtual environment.

Python 3.8.2 (default, Nov  4 2020, 21:23:28)
[Clang 12.0.0 (clang-1200.0.32.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.processor()
'arm'
>>> import scipy
>>>

How lucky your are! Thank you for your response. I still got errors with using python -m install .. First, an error due to the use of 'PEP517' so I try to use python -m install . --no-use-pep517but the installation still fails. There are such red lines, I don't know where the useful logs about the installation error are.

@pierreia
I tried again with new virtual env, and got errors related with lib* files.

Here is my ad hoc

  • run python setup.py build. This will install lib* files in build/temp.macosx-10.14.6-arm64-3.8/
  • run python setup.py install. This will install some more lib* files.
  • run python -m pip install .

You have to make sure all environmental variables set, like

export OPENBLAS="$(brew --prefix openblas)"
export CPPFLAGS="-I/opt/homebrew/opt/openblas/include"
export LDFLAGS="-L/opt/homebrew/opt/openblas/lib"
export NPY_DISTUTILS_APPEND_FLAGS=1
export SYSTEM_VERSION_COMPAT=1
export CFLAGS="-falign-functions=8"
export PKG_CONFIG_PATH="/opt/homebrew/opt/openblas/lib/pkgconfig"

and Cython and pybind11 are installed.

I am pretty sure this is not a good solution and needs some modification on source code level. (I found out import scipy.integrate raises error and running tests by calling scipy.test() is interrupted.

I guess inseting both -arch arm64 -arch x86_64 causes problems when compiling.

numpy/distutils/unixccompiler.py", line 61, in UnixCCompiler__compile
    raise CompileError(msg)
distutils.errors.CompileError: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -falign-functions=8 -falign-functions=8 -falign-functions=8 -falign-functions=8 n -I/opt/homebrew/opt/openblas/include -c /var/folders/xn/pyqh3f0x26d7dr43nymh2zvc0000gn/T/tmp4qtr29hh/source.c -o /var/folders/xn/pyqh3f0x26d7dr43nymh2zvc0000gn/T/tmp4qtr29hh/var/folders/xn/pyqh3f0x26d7dr43nymh2zvc0000gn/T/tmp4qtr29hh/source.o -MMD -MF /var/folders/xn/pyqh3f0x26d7dr43nymh2zvc0000gn/T/tmp4qtr29hh/var/folders/xn/pyqh3f0x26d7dr43nymh2zvc0000gn/T/tmp4qtr29hh/source.o.d" failed with exit status 1

Related numpy/numpy#17807 (comment)

Also wonder I should get directories like "temp.macosx-11.1" not "temp.macosx-10.14.6" since I am using Big Sur. I am doing more research.

I've just tried again on the most recent release (1.6.1). This worked for me:

pip install cython pybind11
OPENBLAS=$(brew --prefix openblas) CFLAGS="-falign-functions=8 ${CFLAGS}" pip install --no-use-pep517 scipy==1.6.1

I'm trying to build with openblas and get error:

  warning: /Library/Developer/CommandLineTools/usr/bin/ranlib: archive library: build/temp.macosx-10.14.6-arm64-3.8/libsuperlu_src.a will be fat and ar(1) will not be able to ope
rate on it
  ar: build/temp.macosx-10.14.6-arm64-3.8/libsuperlu_src.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it)                                                                ar: build/temp.macosx-10.14.6-arm64-3.8/libsuperlu_src.a: Inappropriate file type or format
  error: Command "ar rcs build/temp.macosx-10.14.6-arm64-3.8/libsuperlu_src.a build/temp.mac…

so need to split that lib with lipo libsuperlu_src.a -thin arm64 -output libsuperlu_src.arm64.a but where I can find "Makefile" for that patch?
Or there is better way to disable multi arch at compile time?

brew install openblas
export OPENBLAS=$(brew --prefix openblas)
export CFLAGS="-falign-functions=8 ${CFLAGS}"
pip install scipy

Currently, this solution worked on my mac.

@flniu 'cos you use python from brew, not built in one (Python 3.8). Right?

@gordio I never use mac built-in python. Further more, brew installed python@3.9 as a dependency of some others, I don't use it directly either. I always create venv with pyenv installed python.

I remember brew used to change default python from 3.6 to 3.7, and break my virtual env (and vim maybe). But I found brew always specify python version now. So use python from brew should be also OK.

My versions, FYI:

openblas: 0.3.13
python(from pyenv): 3.9.4
scipy: 1.6.2
brew install openblas
export OPENBLAS=$(brew --prefix openblas)
export CFLAGS="-falign-functions=8 ${CFLAGS}"
pip install scipy

Currently, this solution worked on my mac.

Thanks, this solution works for me.

brew install openblas
export OPENBLAS=$(brew --prefix openblas)
export CFLAGS="-falign-functions=8 ${CFLAGS}"
pip install scipy

Currently, this solution worked on my mac.

I use Python installed with Homebrew and this solution works for me.

I have tried the bee install openblas solution but I get the following error when running it. Anybody has an idea of what it means and what needs to be done in order to fix good? Many thanks

ERROR: Command errored out with exit status 1: /opt/homebrew/opt/python@3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/fh/r3d9s7dd7wdbv7cltswn4t580000gn/T/pip-install-24i6940p/scipy_c46f1b1260a04ffd89ee1b193caf3111/setup.py'"'"'; __file__='"'"'/private/var/folders/fh/r3d9s7dd7wdbv7cltswn4t580000gn/T/pip-install-24i6940p/scipy_c46f1b1260a04ffd89ee1b193caf3111/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/fh/r3d9s7dd7wdbv7cltswn4t580000gn/T/pip-record-4xir38bg/install-record.txt --single-version-externally-managed --compile --install-headers /opt/homebrew/include/python3.9/scipy Check the logs for full command output.
commented

I'm trying to build with openblas and get error:

  warning: /Library/Developer/CommandLineTools/usr/bin/ranlib: archive library: build/temp.macosx-10.14.6-arm64-3.8/libsuperlu_src.a will be fat and ar(1) will not be able to ope
rate on it
  ar: build/temp.macosx-10.14.6-arm64-3.8/libsuperlu_src.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it)                                                                ar: build/temp.macosx-10.14.6-arm64-3.8/libsuperlu_src.a: Inappropriate file type or format
  error: Command "ar rcs build/temp.macosx-10.14.6-arm64-3.8/libsuperlu_src.a build/temp.mac…

so need to split that lib with lipo libsuperlu_src.a -thin arm64 -output libsuperlu_src.arm64.a but where I can find "Makefile" for that patch?
Or there is better way to disable multi arch at compile time?

@gordio I got the same issue and this comes from the Python that you use when running pip: modules are compiled following the configuration from the host python. Python shipped in Xcode 12 is a fat binary with arm64 & x86_64, as such any python module that it'll build will be fat binaries too. Running pip through an Intel only Python3 fixed this issue on my M1 Mac.

Basically I had to install a x86 Homebrew next to the arm one, install python3 and openblas through this x86 Homebrew and then use the solution suggested in this thread with the x86 python3.

Maybe an arm64 only Python & openblas would work too, but I needed x86 for other python modules that are not arm compatible yet.

For anyone else still having trouble with this, I found that pip3 install scipy works great with the homebrew version of python (3.9.5 and pip 21.1.2), but does not with the default installed version of python3, even with the solutions above.

Running brew install python and creating the aliases alias python="/opt/homebrew/bin/python3" and alias python3="/opt/homebrew/bin/python3" within your shell rc file allowed the installation without trouble.

Just in case anyone out there is doing the dumb thing I did: brew --prefix openblas still outputs a path even if OpenBLAS is not installed.

Make sure you do brew install openblas first.

Given that numpy is now supporting Accelerate again and Apple has fixed blocking issues, perhaps scipy can consider re-enabling Accelerate?
numpy/numpy#18874 (comment)

Apple has fixed blocking issues

Not true. Apple has fixed issue in BLAS, but not LAPACK.

Run the terminal using Rosetta and do the installation.

New MBA M1 user here. I wanted to install numpy and scipy for some open-source development. I got it to work with the instructions that are already in this thread, but had to piece some things together, which I wanted to share in the hopes of it being useful. I succeeded building scipy@v1.7.0 in a virtual environment with Python 3.9.6 from Homebrew by running:

brew install openblas
export OPENBLAS=$(brew --prefix openblas)
export CFLAGS="-falign-functions=8 ${CFLAGS}"
pip install Cython pybind11 pythran
pip install --no-use-pep517 scipy

I used pip version 21.2.1. Also, I ran pip install numpy before in an unrelated installation attempt for numpy, which succeeded due to an existing arm64 wheel and gave me numpy@1.21.1.

In essence, the only difference from the instructions by @hkennyv above was the prerequisite installation of pythran, which apparently was not necessary in earlier versions. FYI, installation time was about five minutes here.

Getting set up with an arm64 conda env is also a good way to go.
Just use miniforge3:
https://github.com/conda-forge/miniforge
I've basically gotten all of the bio-imaging toolchain working native across conda-forge and pip.
The stickler has been PyQt5, but homebrew has that, so I symlink it into my conda envs.

as of now, only recipe from @nicholasjng worked for me

commented

I can confirm @nicholasjng's solution is the best for now.

For those trying to install via poetry - run poetry shell, upgrade pip etc pip install --upgrade pip setuptools wheel then follow these commands.

I don't know if this helps anyone but I was getting build errors and realized that my BitDefender Anti-virus software was flagging Faddeeva-11a208d0.o.tmp as Gen:Variant.Adware.MAC.OSX.GenieoCA.1 and removing it during the build.

Tried standard brew install python, pip3 install scipy, no luck
Tried @nicholasjng 's approach, no luck
Tried https://stackoverflow.com/questions/65745683/how-to-install-scipy-on-apple-silicon-arm-m1, no luck
Tried brew install microforge + conda installing + pointing virtual env pip3 to cached scipy per https://stackoverflow.com/questions/66768259/how-to-install-and-import-scipy-numpy-numexpr-and-others-on-m1-apple-silicon/66768260#66768260, no luck

Pretty much every option either returns an error because it's not recognizing I'm on arm64 or because of some pep517 error which I assumed the --no-use-pep517 would help with...

Don't suppose anyone has any other approaches from the last week? (Or if this is considered solved please point to the accepted solution, but since the ticket is still open I won't hold my breath)

I posted it above, but maybe not clearly.
I installed conda miniforge3:
https://github.com/conda-forge/miniforge
Look for: Miniforge3-MacOSX-arm64
Follow the instructions, it's simple.
Then create an env (use any name you want instead of test-env)
conda create -y -n test-env python=3.9
Make sure you activate the environment
conda activate test-env
And then
conda install scipy
just works:

## Package Plan ##

  environment location: /Users/piotrsobolewski/Dev/miniforge3/envs/test-env

  added / updated specs:
    - scipy


The following NEW packages will be INSTALLED:

  libblas            conda-forge/osx-arm64::libblas-3.9.0-11_osxarm64_openblas
  libcblas           conda-forge/osx-arm64::libcblas-3.9.0-11_osxarm64_openblas
  libgfortran        conda-forge/osx-arm64::libgfortran-5.0.0.dev0-11_0_1_hf114ba7_23
  libgfortran5       conda-forge/osx-arm64::libgfortran5-11.0.1.dev0-hf114ba7_23
  liblapack          conda-forge/osx-arm64::liblapack-3.9.0-11_osxarm64_openblas
  libopenblas        conda-forge/osx-arm64::libopenblas-0.3.17-openmp_h5dd58f0_1
  llvm-openmp        conda-forge/osx-arm64::llvm-openmp-12.0.1-hf3c4609_1
  numpy              conda-forge/osx-arm64::numpy-1.21.2-py39h1f3b974_0
  scipy              conda-forge/osx-arm64::scipy-1.7.0-py39h5060c3b_0


Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

Python 3.9.6 | packaged by conda-forge | (default, Jul  6 2021, 08:51:19) 
[Clang 11.1.0 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> 

I just started with python at the end of July I guess? I've had all the scientific imaging toolchain all arm64 native running with no issues:
numpy, scipy, scikit-image, dask, pyopencl, tensorflow (this one is trickier), StarDist, napari
Generally, if conda install or pip install fails, just read what package/dependency is causing the fail and try the other system. I do have homebrew and gcc, etc. installed that way, plus PyQt5β€”which I just symlink in my conda envs. It's important to be careful and activate conda envs properly, so stuff doesn't end up in default Apple or homebrew site-packages.

I posted it above, but maybe not clearly.
I installed conda miniforge3:
https://github.com/conda-forge/miniforge
Look for: Miniforge3-MacOSX-arm64
Follow the instructions, it's simple.
Then create an env (use any name you want instead of test-env)
conda create -y -n test-env python=3.9
Make sure you activate the environment
conda activate test-env
And then
conda install scipy
just works:

## Package Plan ##

  environment location: /Users/piotrsobolewski/Dev/miniforge3/envs/test-env

  added / updated specs:
    - scipy


The following NEW packages will be INSTALLED:

  libblas            conda-forge/osx-arm64::libblas-3.9.0-11_osxarm64_openblas
  libcblas           conda-forge/osx-arm64::libcblas-3.9.0-11_osxarm64_openblas
  libgfortran        conda-forge/osx-arm64::libgfortran-5.0.0.dev0-11_0_1_hf114ba7_23
  libgfortran5       conda-forge/osx-arm64::libgfortran5-11.0.1.dev0-hf114ba7_23
  liblapack          conda-forge/osx-arm64::liblapack-3.9.0-11_osxarm64_openblas
  libopenblas        conda-forge/osx-arm64::libopenblas-0.3.17-openmp_h5dd58f0_1
  llvm-openmp        conda-forge/osx-arm64::llvm-openmp-12.0.1-hf3c4609_1
  numpy              conda-forge/osx-arm64::numpy-1.21.2-py39h1f3b974_0
  scipy              conda-forge/osx-arm64::scipy-1.7.0-py39h5060c3b_0


Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

Python 3.9.6 | packaged by conda-forge | (default, Jul  6 2021, 08:51:19) 
[Clang 11.1.0 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> 

I just started with python at the end of July I guess? I've had all the scientific imaging toolchain all arm64 native running with no issues:
numpy, scipy, scikit-image, dask, pyopencl, tensorflow (this one is trickier), StarDist, napari
Generally, if conda install or pip install fails, just read what package/dependency is causing the fail and try the other system. I do have homebrew and gcc, etc. installed that way, plus PyQt5β€”which I just symlink in my conda envs. It's important to be careful and activate conda envs properly, so stuff doesn't end up in default Apple or homebrew site-packages.

Thanks for taking the time to elaborate, I'm new to most of these systems. I misunderstood the function of conda in this situation as I was using it directly as a replacement for pip, not pip + virtualenv. Unfortunately other imports I have don't seem to work with conda but I did have some progress with setting up a virtual environment with conda, I thought I might be able to mix and match dependencies with conda and pip (perlin_noise) is one I would have to find a replacement for. (Clients code not mine). Thanks again.

You can mix and match with conda and pip.
This tweet by @tlambert03 helped me get it:
https://twitter.com/TalleyJLambert/status/1367840721663836161?s=20

Conda just sets up your python environment and provides binary packages. Conda-forge has many arm64 packages. Pip can instal binaries or from source. If you have a conda env active (conda activate env-name) you will see that which python and which pip point to binaries in that env. So then you can use pip or python to build from source as well in that env. If you look at my write up on python image tools here https://forum.image.sc/t/napari-tensorflow-aicsimageio-stardist-pyclesperanto-running-native-on-apple-silicon-m1/55051 you can see where I clone a repo and use pip to install from the local source using CC=gcc-11 CXX=g++-11 pip install .
So there's a good chance you can get everything working once you have the heavy dependencies installed. When you try to install something using pip and it fails, just read what it's trying to do. If you see it chain downgrading a package, then try using conda to install that dependency.
You may need to read some errors and make some tweaks here and there, as you can see in my write up, but it's all really minor.

@jamesjadler do you mind posting some information about your setup? What's the output from the following commands?

which brew && which python && which pip && brew --prefix openblas && pip list

You can mix and match with conda and pip.

This is not a solution, and e.g. my decision to not use conda even in mixtures is well-informed.

If there are no pip wheels, it should at least build.

You can mix and match with conda and pip.

This is not a solution, and e.g. my decision to not use conda even in mixtures is well-informed.

If there are no pip wheels, it should at least build.

Fair enough! I've got no dog in this and I am not well-informed.
I'm a bench scientist and not a computer scientist; I'm just trying to get my shit done.
This strategy worked for me and everything hums. Everyone has to make their own decisions.

@jamesjadler do you mind posting some information about your setup? What's the output from the following commands?

which brew && which python && which pip && brew --prefix openblas && pip list

These are the packages I actually cared about:
import perlin_noise as pn
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from scipy.signal import argrelextrema, find_peaks
import numpy as np
import csv
import random
from itertools import count
import pandas as pd
import math
from datetime import datetime
import platform

My code is now working if I remove the perlin noise import, also seems like conda needs me to reinstall matplotlib every time I want to run after closing the terminal even if I'm in the same active state, that's not relevant to what you guys are looking at but thought it was interesting.
This is what I have now that I'm mixing and matching conda/pip.

/opt/homebrew/bin/brew
/opt/homebrew/Caskroom/miniforge/base/bin/python
/opt/homebrew/Caskroom/miniforge/base/bin/pip
/opt/homebrew/opt/openblas
Package                Version
---------------------- -------------------
brotlipy               0.7.0
certifi                2021.5.30
cffi                   1.14.6
chardet                4.0.0
charset-normalizer     2.0.0
colorama               0.4.4
conda                  4.10.3
conda-package-handling 1.7.3
cryptography           3.4.7
cycler                 0.10.0
idna                   3.1
kiwisolver             1.3.1
matplotlib             3.4.3
numpy                  1.21.2
olefile                0.46
pandas                 1.3.2
Pillow                 8.3.1
pip                    21.2.2
pycosat                0.6.3
pycparser              2.20
pyOpenSSL              20.0.1
pyparsing              2.4.7
PySocks                1.7.1
python-dateutil        2.8.2
pytz                   2021.1
requests               2.26.0
ruamel-yaml-conda      0.15.80
scipy                  1.7.0
setuptools             49.6.0.post20210108
six                    1.16.0
tornado                6.1
tqdm                   4.62.0
urllib3                1.26.6
wheel                  0.36.2
commented

for me its working in miniforge conda envs.
python ==3.8.10
but it doesnt work on python==3.9.5
conda list

a-certificates 2021.5.30 h4653dfc_0 conda-forge
joblib 1.0.1 pyhd8ed1ab_0 conda-forge
libblas 3.9.0 11_osxarm64_openblas conda-forge
libcblas 3.9.0 11_osxarm64_openblas conda-forge
libcxx 12.0.1 h168391b_0 conda-forge
libffi 3.3 h9f76cd9_2 conda-forge
libgfortran 5.0.0.dev0 11_0_1_hf114ba7_23 conda-forge
libgfortran5 11.0.1.dev0 hf114ba7_23 conda-forge
liblapack 3.9.0 11_osxarm64_openblas conda-forge
libopenblas 0.3.17 openmp_h5dd58f0_1 conda-forge
llvm-openmp 12.0.1 hf3c4609_1 conda-forge
ncurses 6.2 h9aa5885_4 conda-forge
numpy 1.21.2 py38hbf7bb01_0 conda-forge
openssl 1.1.1k h3422bc3_1 conda-forge
pip 21.2.4 pyhd8ed1ab_0 conda-forge
python 3.8.10 hf9733c0_1_cpython conda-forge
python_abi 3.8 2_cp38 conda-forge
readline 8.1 hedafd6a_0 conda-forge
scikit-learn 0.24.2 py38h2cd4032_1 conda-forge
scipy 1.7.0 py38hd0c9ec0_0 conda-forge
setuptools 57.4.0 py38h10201cd_0 conda-forge
sqlite 3.36.0 h72a2b83_0 conda-forge
threadpoolctl 2.2.0 pyh8a188c0_0 conda-forge
tk 8.6.10 hf7e6567_1 conda-forge
wheel 0.37.0 pyhd8ed1ab_1 conda-forge
xz 5.2.5 h642e427_1 conda-forge
zlib 1.2.11 h31e879b_1009 conda-forge

New MBA M1 user here. I wanted to install numpy and scipy for some open-source development. I got it to work with the instructions that are already in this thread, but had to piece some things together, which I wanted to share in the hopes of it being useful. I succeeded building scipy@v1.7.0 in a virtual environment with Python 3.9.6 from Homebrew by running:

brew install openblas
export OPENBLAS=$(brew --prefix openblas)
export CFLAGS="-falign-functions=8 ${CFLAGS}"
pip install Cython pybind11 pythran
pip install --no-use-pep517 scipy

I used pip version 21.2.1. Also, I ran pip install numpy before in an unrelated installation attempt for numpy, which succeeded due to an existing arm64 wheel and gave me numpy@1.21.1.

In essence, the only difference from the instructions by @hkennyv above was the prerequisite installation of pythran, which apparently was not necessary in earlier versions. FYI, installation time was about five minutes here.

this is only valid workaround for me! the successful installation output are as below:

$ brew install openblas
export OPENBLAS=$(brew --prefix openblas)
export CFLAGS="-falign-functions=8 ${CFLAGS}"
pip install Cython pybind11 pythran
pip install --no-use-pep517 scipy
Warning: openblas 0.3.17 is already installed and up-to-date.
To reinstall 0.3.17, run:
  brew reinstall openblas
Requirement already satisfied: Cython in /Users/hanley/.pyenv/versions/3.9.5/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (0.29.24)
Requirement already satisfied: pybind11 in /Users/hanley/.pyenv/versions/3.9.5/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (2.7.1)
Collecting pythran
  Using cached pythran-0.9.12.post1-py3-none-any.whl (4.3 MB)
Collecting gast~=0.5.0
  Using cached gast-0.5.2-py3-none-any.whl (10 kB)
Requirement already satisfied: ply>=3.4 in /Users/hanley/.pyenv/versions/3.9.5/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pythran) (3.11)
Collecting beniget~=0.4.0
  Using cached beniget-0.4.1-py3-none-any.whl (9.4 kB)
Requirement already satisfied: numpy in /Users/hanley/.pyenv/versions/3.9.5/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pythran) (1.21.2)
Installing collected packages: gast, beniget, pythran
Successfully installed beniget-0.4.1 gast-0.5.2 pythran-0.9.12.post1
Collecting scipy
  Using cached scipy-1.7.1.tar.gz (36.1 MB)
Requirement already satisfied: numpy<1.23.0,>=1.16.5 in /Users/hanley/.pyenv/versions/3.9.5/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from scipy) (1.21.2)
Using legacy 'setup.py install' for scipy, since package 'wheel' is not installed.
Installing collected packages: scipy
    Running setup.py install for scipy ... done
Successfully installed scipy-1.7.1

my environment is brew and python(pyenv)

$ which brew && which python && which pip && brew --prefix openblas && pip list
/opt/homebrew/bin/brew
/Users/hanley/.pyenv/shims/python
/Users/hanley/.pyenv/shims/pip
/opt/homebrew/opt/openblas
Package                                           Version
------------------------------------------------- ------------
aiodns                                            1.2.0
aiohttp                                           3.7.4.post0
appdirs                                           1.4.4
asgiref                                           3.4.1
async-timeout                                     3.0.1
attrs                                             21.2.0
autopep8                                          1.5.7
backports.entry-points-selectable                 1.1.0
beautifulsoup4                                    4.9.3
beniget                                           0.4.1
browser-cookie3                                   0.12.1

gh-14316 is now merged. The next steps are:

  • Merge MacPython/scipy-wheels#123 once it is green
  • Sync gh-14316 to maintenance/1.7.x
  • Sync the scipy-wheels PR to the v.1.7.x branch
  • Check the other open Big Sur & M1 issues in the 1.7.2 milestone.
  • Release 1.7.2 with arm64 and universal2 wheels.

There are universal2 and arm64 nighly wheels at https://anaconda.org/scipy-wheels-nightly/scipy/files now. To test:

pip install --pre -i https://pypi.anaconda.org/scipy-wheels-nightly/simple scipy

Thanks very much @rgommers, unfortunately this wheel (with OpenBLAS from the numpy wheel) can cause macOS to kernel panic when calling ARPACK's eigsh with the default number of threads for OpenBLAS, see: #14688.

New MBA M1 user here. I wanted to install numpy and scipy for some open-source development. I got it to work with the instructions that are already in this thread, but had to piece some things together, which I wanted to share in the hopes of it being useful. I succeeded building scipy@v1.7.0 in a virtual environment with Python 3.9.6 from Homebrew by running:

brew install openblas
export OPENBLAS=$(brew --prefix openblas)
export CFLAGS="-falign-functions=8 ${CFLAGS}"
pip install Cython pybind11 pythran
pip install --no-use-pep517 scipy

I used pip version 21.2.1. Also, I ran pip install numpy before in an unrelated installation attempt for numpy, which succeeded due to an existing arm64 wheel and gave me numpy@1.21.1.

In essence, the only difference from the instructions by @hkennyv above was the prerequisite installation of pythran, which apparently was not necessary in earlier versions. FYI, installation time was about five minutes here.

Note that the last step pip install --no-use-pep517 scipy could take up to 10-15 min.

For those using nix with home-manager or that want to avoid cryptic env-vars, this worked for me (given that you have openblas/lapack installed with home-manager):

❯ cat ~/.numpy-site.cfg
[DEFAULT]
library_dirs = $HOME/.nix-profile/lib
include_dirs = $HOME/.nix-profile/include

Replace $HOME with your actual home path, numpy does not do it for you (I also tried with ~/ but does not follow it either)

It adds the nix lib/include folders to the site config for numpy as described in https://github.com/numpy/numpy/blob/main/site.cfg.example.

I assume there is a way of doing the same with Homebrew, or with env-vars but I could not find a clear doc on where is BLAS being processed, etc. I could only find some references to other vars in https://numpy.org/doc/stable/user/building.html, so I opted to use this file which is a bit more documented.

There are universal2 and arm64 nighly wheels at https://anaconda.org/scipy-wheels-nightly/scipy/files now. To test:

pip install --pre -i https://pypi.anaconda.org/scipy-wheels-nightly/simple scipy

I solved with this one. Thanks a lot.
(M1 Macbook Pro, Python 3.9.5, pip version "21.2.4") πŸš€

I get this error now

ERROR: Could not find a version that satisfies the requirement pystache==0.5.4 (from versions: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.4)
ERROR: No matching distribution found for pystache==0.5.4

I get this error now

ERROR: Could not find a version that satisfies the requirement pystache==0.5.4 (from versions: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.4)
ERROR: No matching distribution found for pystache==0.5.4

Try upgrade pip command. python -m pip install --upgrade pip

Not sure about it but looks pip version problem or u did mistake something.

zsh: no such file or directory: /opt/homebrew/bin/pip

I get this in the last step of @lutzroeder 's solution

zsh: no such file or directory: /opt/homebrew/bin/pip

I get this in the last step of @lutzroeder 's solution

what is the results of which python?
Probably python is installed in different way (for those on M1 brew has different path for ARM apps and those run through Rosetta)
Does doing just pip install . helps?

It's often a good idea to call pip as python -m pip install .... That way you can be sure that pip will be installing in the correct Python interpreter.

So finally
pip install --pre -i https://pypi.anaconda.org/scipy-wheels-nightly/simple scipy worked for me. I got scipy to work. But now statsmodels will not work. It gets stuck on building dependencies.

Result of which python is /usr/bin/python and result of which python3 is /opt/homebrew/bin/python3

Is there a way to get around building dependencies for statsmodels?

I can confirm @nicholasjng's solution is the best for now.

For those trying to install via poetry - run poetry shell, upgrade pip etc pip install --upgrade pip setuptools wheel then follow these commands.

@kindjacket
I followed the steps and still got the clang numpy errors and x86 package error. I'm Python 3.9.7, NumPy 1.21.3, Pip 21.3.1, using Poetry 1.1.10.

For me, the pip install --pre -i https://pypi.anaconda.org/scipy-wheels-nightly/simple scipy works. However Poetry can't resolve the dependency because scipy 1.8 is still in dev so typing poetry update after lock tries to revert me back to the failing scipy 1.7.1 or it fails on poetry lock.

Poetry Solution if brew/pip workaround doesn't work

Edit: I took a similar approach to here and downloaded the ARM wheels from Anaconda PyPi, put them in my repo in a wheels folder and pointed Poetry towards them in the pyproject.toml. I liked this better than having to resort to miniconda.

[tool.poetry.dependencies]
python = ">=3.8,<3.10"

scipy = [
    {url = "https://pypi.anaconda.org/scipy-wheels-nightly/simple/scipy/1.8.0.dev0%2B1869.838cfbe/scipy-1.8.0.dev0%2B1869.838cfbe-cp39-cp39-macosx_11_0_arm64.whl", markers = "platform_machine == 'arm64'"},
    {version = "<=1.7", markers="platform_machine != 'arm64'"}
]
scikit-learn = [
    {path = "wheels/scikit_learn-1.1.dev0-cp39-cp39-macosx_11_0_universal2.whl", markers = "platform_machine == 'arm64'"},
    {version = ">=0.24.1,<=1.0.0", markers = "platform_machine != 'arm64'"}
]
xgboost = [
    {path = "wheels/xgboost-1.6.0.dev0-cp39-cp39-macosx_11_0_universal2.whl", markers = "platform_machine == 'arm64'"},
    {version="<=1.5", markers = "platform_machine != 'arm64'"}
    ]

There are universal2 and arm64 nighly wheels at https://anaconda.org/scipy-wheels-nightly/scipy/files now. To test:

pip install --pre -i https://pypi.anaconda.org/scipy-wheels-nightly/simple scipy

Just confirmed this equally works on virtual environment

Had the same issue with an M1 chip. Note that

brew install openblas
pip install cython pybind11 pythran numpy
OPENBLAS=$(brew --prefix openblas) CFLAGS="-falign-functions=8 ${CFLAGS}" pip install --no-use-pep517 scipy

did not work for Python 3.8. It does work for Python 3.9.7.

I was able to get scipy 1.7.2 to install in python 3.9.7 using this command:

OPENBLAS=$(brew --prefix openblas) CFLAGS="-falign-functions=8 ${CFLAGS}" pip install scipy==1.7.2

@davidhariri could you run python -c "import scipy; scipy.test()" and tell us if that succeeded without crashes? It's still a little unclear to me if the open issues happen on all M1 machines, or a (potentially small) subset. We can release official wheels if it's fine for a (large) majority of people, but not if there are crashes for all users.

@rgommers full output below the fold. You can see in the logs how I created the environment in which the tests were run and what versions I used for pip, pytest etc.

3 failed, 32069 passed, 2583 skipped ```sh ➜ Code pyenv virtualenv 3.9.7 scipytest Looking in links: /var/folders/zg/mrc3w4xd18ndnykw37vs2v5w0000gp/T/tmp8bali5ex Requirement already satisfied: setuptools in /Users/david/.pyenv/versions/3.9.7/envs/scipytest/lib/python3.9/site-packages (57.4.0) Requirement already satisfied: pip in /Users/david/.pyenv/versions/3.9.7/envs/scipytest/lib/python3.9/site-packages (21.2.3) ➜ Code pyenv activate scipytest pyenv-virtualenv: prompt changing will be removed from future release. configure `export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior. (scipytest) ➜ Code python Python 3.9.7 (default, Nov 9 2021, 09:59:36) [Clang 13.0.0 (clang-1300.0.29.3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import scipy; scipy.test() Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'scipy' >>> quit() (scipytest) ➜ Code pip install -u pip

Usage:
pip install [options] [package-index-options] ...
pip install [options] -r [package-index-options] ...
pip install [options] [-e] ...
pip install [options] [-e] ...
pip install [options] <archive url/path> ...

no such option: -u
(scipytest) ➜ Code pip install -U pip
Requirement already satisfied: pip in /Users/david/.pyenv/versions/3.9.7/envs/scipytest/lib/python3.9/site-packages (21.2.3)
Collecting pip
Using cached pip-21.3.1-py3-none-any.whl (1.7 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 21.2.3
Uninstalling pip-21.2.3:
Successfully uninstalled pip-21.2.3
Successfully installed pip-21.3.1
(scipytest) ➜ Code pip install scipy
Collecting scipy
Using cached scipy-1.7.2-cp39-cp39-macosx_12_0_arm64.whl
Collecting numpy<1.23.0,>=1.16.5
Using cached numpy-1.21.4-cp39-cp39-macosx_11_0_arm64.whl (12.4 MB)
Installing collected packages: numpy, scipy
Successfully installed numpy-1.21.4 scipy-1.7.2
(scipytest) ➜ Code python -c "import scipy; scipy.test()"
Traceback (most recent call last):
File "", line 1, in
File "/Users/david/.pyenv/versions/scipytest/lib/python3.9/site-packages/scipy/_lib/_testutils.py", line 29, in call
import pytest
ModuleNotFoundError: No module named 'pytest'
(scipytest) ➜ Code pip install pytest
Collecting pytest
Downloading pytest-6.2.5-py3-none-any.whl (280 kB)
|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 280 kB 3.0 MB/s
Collecting py>=1.8.2
Downloading py-1.11.0-py2.py3-none-any.whl (98 kB)
|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 98 kB 7.2 MB/s
Collecting iniconfig
Downloading iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting attrs>=19.2.0
Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB)
|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 53 kB 10.3 MB/s
Collecting packaging
Using cached packaging-21.2-py3-none-any.whl (40 kB)
Collecting toml
Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting pluggy<2.0,>=0.12
Downloading pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Collecting pyparsing<3,>=2.0.2
Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Installing collected packages: pyparsing, toml, py, pluggy, packaging, iniconfig, attrs, pytest
Successfully installed attrs-21.2.0 iniconfig-1.1.1 packaging-21.2 pluggy-1.0.0 py-1.11.0 pyparsing-2.4.7 pytest-6.2.5 toml-0.10.2
(scipytest) ➜ Code python -c "import scipy; scipy.test()"
============================================== test session starts ===============================================
platform darwin -- Python 3.9.7, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /Users/david/Code
collected 45903 items / 11134 deselected / 34769 selected

_build_utils/tests/test_scipy_version.py . [ 0%]
_lib/tests/test__gcutils.py ...... [ 0%]
_lib/tests/test__pep440.py ......... [ 0%]
_lib/tests/test__testutils.py .. [ 0%]
_lib/tests/test__threadsafety.py .. [ 0%]
_lib/tests/test__util.py ...................... [ 0%]
_lib/tests/test_bunch.py ............................ [ 0%]
_lib/tests/test_ccallback.py ss.. [ 0%]
_lib/tests/test_deprecation.py . [ 0%]
_lib/tests/test_import_cycles.py . [ 0%]
_lib/tests/test_tmpdirs.py ... [ 0%]
cluster/tests/test_disjoint_set.py ..................... [ 0%]
cluster/tests/test_hierarchy.py .......................................................................... [ 0%]
......sss........ [ 0%]
cluster/tests/test_vq.py ......................... [ 0%]
constants/tests/test_codata.py ....... [ 0%]
constants/tests/test_constants.py ... [ 0%]
fft/_pocketfft/tests/test_basic.py ....................................................................... [ 0%]
.......................................................................................................... [ 1%]
.......................................................................................................... [ 1%]
.......................................................................................................... [ 1%]
....................................................................... [ 1%]
fft/_pocketfft/tests/test_real_transforms.py ............................................................. [ 2%]
.......................................................................................................... [ 2%]
.......................................................................................................... [ 2%]
.......................................................................................................... [ 3%]
.......................................................................................................... [ 3%]
.......................................................................................................... [ 3%]
.......................................................................................................... [ 3%]
.......................................................................................................... [ 4%]
.......................................................................................................... [ 4%]
.......................................................................................................... [ 4%]
.......................................................................................................... [ 5%]
.......................................................................................................... [ 5%]
.......................................................................................................... [ 5%]
.......................................................................................................... [ 6%]
.......................................................................................................... [ 6%]
.......................................................................................................... [ 6%]
.......................................................................................................... [ 7%]
.......................................................................................................... [ 7%]
..................................................................................... [ 7%]
fft/tests/test_backend.py ............................................ [ 7%]
fft/tests/test_fft_function.py . [ 7%]
fft/tests/test_fftlog.py ........................................ [ 7%]
fft/tests/test_helper.py .................. [ 7%]
fft/tests/test_multithreading.py ........................................................ [ 8%]
fft/tests/test_numpy.py .................................................................................. [ 8%]
............................................ [ 8%]
fft/tests/test_real_transforms.py ........................................................................ [ 8%]
.......................................................................................................... [ 8%]
.......................................................................................................... [ 9%]
.......................................................................................................... [ 9%]
.......................................................................................................... [ 9%]
.......................................................................................................... [ 10%]
.......................................................................................................... [ 10%]
.......................................................................................................... [ 10%]
.......................................................................................................... [ 11%]
.......................................................................................................... [ 11%]
.......................................................................................................... [ 11%]
.......................................................................................................... [ 11%]
.......................................................................................................... [ 12%]
.......................................................................................................... [ 12%]
.......................................................................................................... [ 12%]
.......................................................................................................... [ 13%]
.......................................................................................................... [ 13%]
.......................................................................................................... [ 13%]
.......................................................................................................... [ 14%]
.......................................................................................................... [ 14%]
.......................................................................................................... [ 14%]
.......................................................................................................... [ 15%]
...................................... [ 15%]
fftpack/tests/test_basic.py ......x....................................................................... [ 15%]
.......................................................................................................... [ 15%]
.......................................................................................................... [ 15%]
...... [ 15%]
fftpack/tests/test_helper.py .... [ 15%]
fftpack/tests/test_import.py . [ 15%]
fftpack/tests/test_pseudo_diffs.py ............................. [ 16%]
fftpack/tests/test_real_transforms.py .................................................................... [ 16%]
.......................................................................................................... [ 16%]
.................................................. [ 16%]
integrate/_ivp/tests/test_ivp.py ........................ [ 16%]
integrate/_ivp/tests/test_rk.py .......... [ 16%]
integrate/tests/test__quad_vec.py .................... [ 16%]
integrate/tests/test_banded_ode_solvers.py . [ 16%]
integrate/tests/test_bvp.py ................ [ 16%]
integrate/tests/test_integrate.py ............................................... [ 17%]
integrate/tests/test_odeint_jac.py .. [ 17%]
integrate/tests/test_quadpack.py ................................ [ 17%]
integrate/tests/test_quadrature.py ...................... [ 17%]
interpolate/tests/test_bsplines.py ....................................................................... [ 17%]
x....................... [ 17%]
interpolate/tests/test_fitpack.py ................s.... [ 17%]
interpolate/tests/test_fitpack2.py ...................................................... [ 17%]
interpolate/tests/test_interpnd.py ..................... [ 17%]
interpolate/tests/test_interpolate.py .................................................................... [ 17%]
......................................................................................... [ 18%]
interpolate/tests/test_ndgriddata.py ............ [ 18%]
interpolate/tests/test_pade.py .... [ 18%]
interpolate/tests/test_polyint.py .................................................... [ 18%]
interpolate/tests/test_rbf.py .......... [ 18%]
interpolate/tests/test_rbfinterp.py ...................................................................... [ 18%]
.......................................................................................................... [ 18%]
...... [ 18%]
interpolate/tests/test_regression.py . [ 18%]
io/arff/tests/test_arffread.py ........................... [ 19%]
io/harwell_boeing/tests/test_fortran_format.py ........... [ 19%]
io/harwell_boeing/tests/test_hb.py .. [ 19%]
io/matlab/tests/test_byteordercodes.py .. [ 19%]
io/matlab/tests/test_mio.py ......................................................... [ 19%]
io/matlab/tests/test_mio5_utils.py ...... [ 19%]
io/matlab/tests/test_mio_funcs.py . [ 19%]
io/matlab/tests/test_mio_utils.py .. [ 19%]
io/matlab/tests/test_miobase.py . [ 19%]
io/matlab/tests/test_pathological.py .. [ 19%]
io/matlab/tests/test_streams.py ........... [ 19%]
io/tests/test_fortran.py ........... [ 19%]
io/tests/test_idl.py .................................................................. [ 19%]
io/tests/test_mmio.py .......................................................................... [ 19%]
io/tests/test_netcdf.py ......................... [ 19%]
io/tests/test_paths.py ........... [ 19%]
io/tests/test_wavfile.py ....................... [ 19%]
linalg/tests/test_basic.py ............................................................s.................. [ 20%]
.................................s............................ [ 20%]
linalg/tests/test_blas.py ................................................... [ 20%]
linalg/tests/test_build.py s [ 20%]
linalg/tests/test_cython_blas.py ...... [ 20%]
linalg/tests/test_cython_lapack.py .. [ 20%]
linalg/tests/test_decomp.py ........x..................................................................... [ 20%]
.......................................................................................................... [ 21%]
............................................................................................s.x........... [ 21%]
.................... [ 21%]
linalg/tests/test_decomp_cholesky.py ................ [ 21%]
linalg/tests/test_decomp_cossin.py ....................................................................... [ 21%]
.................... [ 21%]
linalg/tests/test_decomp_ldl.py ..... [ 21%]
linalg/tests/test_decomp_polar.py .. [ 21%]
linalg/tests/test_decomp_update.py ....................................................................... [ 21%]
.......................................................................................................... [ 22%]
.......................................................................................................... [ 22%]
.......................................................................................................... [ 22%]
.......................................................................................................... [ 23%]
.......................................................................................................... [ 23%]
................................................................ [ 23%]
linalg/tests/test_fblas.py ............................................................................... [ 23%]
.................................................. [ 23%]
linalg/tests/test_interpolative.py ................................................ [ 24%]
linalg/tests/test_lapack.py .............................................................................. [ 24%]
.s................................s....................................................................... [ 24%]
.......................................................................................................... [ 24%]
.......................................................................................................... [ 25%]
.......................................................................................................... [ 25%]
.......................................................................................................... [ 25%]
.......................................................................................................... [ 26%]
.......................................................................................................... [ 26%]
.......................................................................................................... [ 26%]
.......................................................................................................... [ 27%]
.......................................................................................................... [ 27%]
.......................................................................................................... [ 27%]
.......................................................................................................... [ 28%]
.......................................................................................................... [ 28%]
.......................................................................................................... [ 28%]
.......................................................................................................... [ 28%]
.......................................................................................................... [ 29%]
.......................................................................................................... [ 29%]
......... [ 29%]
linalg/tests/test_matfuncs.py .....................................X............... [ 29%]
linalg/tests/test_matmul_toeplitz.py ... [ 29%]
linalg/tests/test_misc.py . [ 29%]
linalg/tests/test_procrustes.py .......... [ 29%]
linalg/tests/test_sketches.py ..... [ 29%]
linalg/tests/test_solve_toeplitz.py ......X [ 29%]
linalg/tests/test_solvers.py ..x...... [ 29%]
linalg/tests/test_special_matrices.py .................................................................... [ 30%]
................................................... [ 30%]
misc/tests/test_common.py ... [ 30%]
misc/tests/test_doccer.py ..... [ 30%]
ndimage/tests/test_c_api.py ... [ 30%]
ndimage/tests/test_datatypes.py .. [ 30%]
ndimage/tests/test_filters.py ............................................................................ [ 30%]
.......................................................................................................... [ 30%]
.......................................................................................................... [ 31%]
.......................................................................................................... [ 31%]
.......................................................................................................... [ 31%]
.......................................................................................................... [ 31%]
.......................................................................................................... [ 32%]
.......................................................................................................... [ 32%]
.......................................................................................................... [ 32%]
.......................................................................................................... [ 33%]
.......................................................................................................... [ 33%]
.......................................................................................................... [ 33%]
.......................................................................................................... [ 34%]
.......................................................................................................... [ 34%]
............................................................................................ [ 34%]
ndimage/tests/test_fourier.py ............................................................................ [ 34%]
[ 34%]
ndimage/tests/test_interpolation.py ...................................................................... [ 35%]
.......................................................................................................... [ 35%]
.......................................................................................................... [ 35%]
.......................................................................................................... [ 35%]
.......................................................................................................... [ 36%]
.......................................................................................................... [ 36%]
.......................................................................................................... [ 36%]
.......................................................................................................... [ 37%]
.......................................................................................................... [ 37%]
...................................................................... [ 37%]
ndimage/tests/test_measurements.py ....................................................................... [ 37%]
................................................ [ 38%]
ndimage/tests/test_morphology.py ......................................................................... [ 38%]
.......................................................................................................... [ 38%]
.......................................................................................................... [ 38%]
.......................................................................................................... [ 39%]
.......................................................................................................... [ 39%]
.......................................................................................................... [ 39%]
.......................................................................................................... [ 40%]
.......................................................................................................... [ 40%]
... [ 40%]
ndimage/tests/test_splines.py .................. [ 40%]
odr/tests/test_odr.py ................s [ 40%]
optimize/_trustregion_constr/tests/test_canonical_constraint.py ...... [ 40%]
optimize/_trustregion_constr/tests/test_projections.py .......... [ 40%]
optimize/_trustregion_constr/tests/test_qp_subproblem.py ....................... [ 40%]
optimize/_trustregion_constr/tests/test_report.py .. [ 40%]
optimize/tests/test__basinhopping.py ............................. [ 40%]
optimize/tests/test__differential_evolution.py ................................................... [ 40%]
optimize/tests/test__dual_annealing.py .......................................... [ 40%]
optimize/tests/test__linprog_clean_inputs.py ............. [ 41%]
optimize/tests/test__numdiff.py ............................... [ 41%]
optimize/tests/test__remove_redundancy.py ................................................................ [ 41%]
.... [ 41%]
optimize/tests/test__root.py .... [ 41%]
optimize/tests/test__shgo.py ................................................ [ 41%]
optimize/tests/test__spectral.py .... [ 41%]
optimize/tests/test_cobyla.py .... [ 41%]
optimize/tests/test_constraint_conversion.py ........ [ 41%]
optimize/tests/test_constraints.py .......... [ 41%]
optimize/tests/test_cython_optimize.py ..... [ 41%]
optimize/tests/test_differentiable_functions.py .......... [ 41%]
optimize/tests/test_hessian_update_strategy.py .... [ 41%]
optimize/tests/test_lbfgsb_hessinv.py .. [ 41%]
optimize/tests/test_lbfgsb_setulb.py . [ 41%]
optimize/tests/test_least_squares.py ..................................................................... [ 41%]
............................................. [ 41%]
optimize/tests/test_linear_assignment.py ................ [ 41%]
optimize/tests/test_linesearch.py ........... [ 41%]
optimize/tests/test_linprog.py ........................................................................... [ 42%]
.sss...........................................................................ss......................... [ 42%]
................................................s..s.ss................................................... [ 42%]
........................s.........................................................................sFX..... [ 43%]
.....................................................................sFsX................................. [ 43%]
...........................................sssss.......................................................... [ 43%]
....................ssss..........................................................................s....... [ 44%]
.................................................................................s........................ [ 44%]
............... [ 44%]
optimize/tests/test_lsq_common.py .......... [ 44%]
optimize/tests/test_lsq_linear.py .................. [ 44%]
optimize/tests/test_minimize_constrained.py ................x [ 44%]
optimize/tests/test_minpack.py ................................................................ [ 44%]
optimize/tests/test_nnls.py .. [ 44%]
optimize/tests/test_nonlin.py ............................... [ 44%]
optimize/tests/test_optimize.py ............X.............X.............X.............X................... [ 44%]
....................................x..................................................................... [ 45%]
............... [ 45%]
optimize/tests/test_quadratic_assignment.py .............. [ 45%]
optimize/tests/test_regression.py ... [ 45%]
optimize/tests/test_slsqp.py ..................................... [ 45%]
optimize/tests/test_tnc.py .................. [ 45%]
optimize/tests/test_trustregion.py ........ [ 45%]
optimize/tests/test_trustregion_exact.py .......... [ 45%]
optimize/tests/test_trustregion_krylov.py ..... [ 45%]
optimize/tests/test_zeros.py .................................. [ 45%]
signal/tests/test_array_tools.py ...... [ 45%]
signal/tests/test_bsplines.py ............ [ 45%]
signal/tests/test_cont2discrete.py ........................ [ 45%]
signal/tests/test_dltisys.py ................................ [ 45%]
signal/tests/test_filter_design.py ..........................................................s............ [ 46%]
.......................................................................................................... [ 46%]
.... [ 46%]
signal/tests/test_fir_filter_design.py ................................. [ 46%]
signal/tests/test_ltisys.py .............................................................................. [ 46%]
..................... [ 46%]
signal/tests/test_max_len_seq.py .. [ 46%]
signal/tests/test_peak_finding.py ................................................ [ 46%]
signal/tests/test_result_type.py ..... [ 46%]
signal/tests/test_savitzky_golay.py ............ [ 47%]
signal/tests/test_signaltools.py ......................................................................... [ 47%]
.......................................................................................................... [ 47%]
.......................................................................................................... [ 47%]
.......................................................................................................... [ 48%]
.......................................................................................................... [ 48%]
.......................................................................................................... [ 48%]
.......................................................................................................... [ 49%]
.......................................................................................................... [ 49%]
.......................................................................................................... [ 49%]
.......................................................................................................... [ 49%]
.......................................................................................................... [ 50%]
.......................................................................................................... [ 50%]
.......................................................................................................... [ 50%]
.......................................................................................................... [ 51%]
.......................................................................................................... [ 51%]
.......................................................................................................... [ 51%]
.........................................................................ss............................... [ 52%]
........................................................................... [ 52%]
signal/tests/test_spectral.py ............................................................................ [ 52%]
.................................. [ 52%]
signal/tests/test_upfirdn.py ............................................................................. [ 52%]
.......................................................................................................... [ 53%]
.......................................................................................................... [ 53%]
... [ 53%]
signal/tests/test_waveforms.py .................................. [ 53%]
signal/tests/test_wavelets.py ....... [ 53%]
signal/tests/test_windows.py ............................................. [ 53%]
sparse/csgraph/tests/test_connected_components.py ...... [ 53%]
sparse/csgraph/tests/test_conversions.py ... [ 53%]
sparse/csgraph/tests/test_flow.py ............... [ 53%]
sparse/csgraph/tests/test_graph_laplacian.py .... [ 53%]
sparse/csgraph/tests/test_matching.py ....................s [ 53%]
sparse/csgraph/tests/test_reordering.py ... [ 53%]
sparse/csgraph/tests/test_shortest_path.py .............................. [ 53%]
sparse/csgraph/tests/test_spanning_tree.py . [ 53%]
sparse/csgraph/tests/test_traversal.py .... [ 53%]
sparse/linalg/dsolve/tests/test_linsolve.py .s.s.s.s.ss.......s.................... [ 54%]
sparse/linalg/eigen/arpack/tests/test_arpack.py ............................... [ 54%]
sparse/linalg/eigen/lobpcg/tests/test_lobpcg.py .............. [ 54%]
sparse/linalg/isolve/tests/test_gcrotmk.py ....... [ 54%]
sparse/linalg/isolve/tests/test_iterative.py .......................F..xxxx................. [ 54%]
sparse/linalg/isolve/tests/test_lgmres.py ........ [ 54%]
sparse/linalg/isolve/tests/test_lsmr.py .............. [ 54%]
sparse/linalg/isolve/tests/test_lsqr.py ..... [ 54%]
sparse/linalg/isolve/tests/test_minres.py ....... [ 54%]
sparse/linalg/isolve/tests/test_utils.py . [ 54%]
sparse/linalg/tests/test_expm_multiply.py ................. [ 54%]
sparse/linalg/tests/test_interface.py .............. [ 54%]
sparse/linalg/tests/test_matfuncs.py ................................. [ 54%]
sparse/linalg/tests/test_norm.py ....... [ 54%]
sparse/linalg/tests/test_onenormest.py ss.s.. [ 54%]
sparse/linalg/tests/test_pydata_sparse.py ssssssssssssssssssssssssssssssssssssssssssssssssssss [ 54%]
sparse/tests/test_base.py .............................................................................s.. [ 55%]
.......................................................................................................... [ 55%]
..........................................s............................................................... [ 55%]
.....s.ssssss.....................................................................s....................... [ 55%]
...........................sss.ss........ssssss........................................................... [ 56%]
..........s..................................................sss.s...........ssssss....................... [ 56%]
.............................................s......sssss.ssssssssssssssssssssssssssssssssssss............ [ 56%]
.x........ssssss....................................................................s......sssss.sssssssss [ 57%]
sssssssssssssssssssssssssss..sss.s.x.s.................................................................... [ 57%]
.......s......sssss.ssssssssssssssssssssssssssssssssssss.......s...........xx.x........................... [ 57%]
................................................s......................................................... [ 58%]
.............sss..xx..........................................................................s........... [ 58%]
......................................................sss..xx............................................. [ 58%]
..........................s......sssss.ssssssssssssssssssssssssssssssssssss..................xx.x.sssxx.ss [ 59%]
ssss...................................................................s......sssss.ssssssssssssssssssssss [ 59%]
ssssssssssssss............x......sss..........ss.ss.................s......s...sssssssssssssssss.....sss.s [ 59%]
s.....s..s.x................s..ss.................sssssxxs..sssss.s.s...........s.......ss.ss............. [ 59%]
s.....s..ssssssssssssssssss....ssss.s..s...s..s.xsss..............ss.ss.................ssss..s..sssss.s.s [ 60%]
..............s....................................s....................................s................. [ 60%]
.......................s..............s...............s.........................ss.............s.......... [ 60%]
............................s........................................s..............s...............s..... [ 61%]
.s.ss.ss.........s....s..ssssssssssssssssss....ssss.ss.s...s..s.xss.........sss..ss.ss................ssss [ 61%]
...s..sssss.s.s...........s......s........s................ss....................s.....s.s......s..ss..... [ 61%]
....sss....s..................................s..............s.....s.......................ss............. [ 62%]
........s.......s.......s..s...s.........sss...s....................................s.............s....... [ 62%]
ss.ss.................s......s...sssssssssssssssss.....sss.ss.....s..s.x................s..ss............. [ 62%]
....sssssxxs..sssss.s.s...........s.......ss.ss.............s.....s..ssssssssssssssssss....ssss.s..s...s.. [ 63%]
s.xsss..............ss.ss.................ssss..s..sssss.s.s..............s............................... [ 63%]
.....s....................................s........................................s..............s....... [ 63%]
........s.........................ss.............s......................................s................. [ 63%]
.......................s..............s...............s......s.ss.ss.........s....s..ssssssssssssssssss... [ 64%]
.ssss.ss.s...s..s.xss.........sss..ss.ss................ssss...s..sssss.s.s...........s......s........s... [ 64%]
.............ss....................s.....s.s......s..ss.........sss....s.................................. [ 64%]
s..............s.....s.......................ss.....................s.......s.......s..s...s.........sss.. [ 65%]
.s....................................s.............s.......ss.ss.................s......s...sssssssssssss [ 65%]
ssss.....sss.ss.....s..s.x................s..ss.................sssssxxs..sssss.s.s...........s.......ss.s [ 65%]
s.............s.....s..ssssssssssssssssss....ssss.s..s...s..s.xsss..............ss.ss.................ssss [ 66%]
..s..sssss.s.s..............s....................................s....................................s... [ 66%]
.....................................s..............s...............s.........................ss.......... [ 66%]
...s......................................s........................................s..............s....... [ 66%]
........s......s.ss.ss.........s....s..ssssssssssssssssss....ssss.ss.s...s..s.xss.........sss..ss.ss...... [ 67%]
..........ssss...s..sssss.s.s...........s......s........s................ss....................s.....s.s.. [ 67%]
....s..ss.........sss....s..................................s..............s.....s.......................s [ 67%]
s.....................s.......s.......s..s...s.........sss...s....................................s....... [ 68%]
......s.......ss.ss.................s......s...sssssssssssssssss.....sss.ss.....s..s.x................s..s [ 68%]
s.................sssssxxs..sssss.s.s...........s.......ss.ss.............s.....s..ssssssssssssssssss....s [ 68%]
sss.s..s...s..s.xsss..............ss.ss.................ssss..s..sssss.s.s..............s................. [ 69%]
...................s....................................s........................................s........ [ 69%]
......s...............s.........................ss.............s......................................s... [ 69%]
.....................................s..............s...............s......s.ss.ss.........s....s..sssssss [ 70%]
sssssssssss....ssss.ss.s...s..s.xss.........sss..ss.ss................ssss...s..sssss.s.s...........s..... [ 70%]
.s........s................ss....................s.....s.s......s..ss.........sss....s.................... [ 70%]
..............s..............s.....s.......................ss.....................s.......s.......s..s...s [ 70%]
.........sss...s....................................s.............s.......ss.ss.................s......s.. [ 71%]
.sssssssssssssssss.....sss.ss.....s..s.x................s..ss.................sssssxxs..sssss.s.s......... [ 71%]
..s.......ss.ss.............s.....s..ssssssssssssssssss....ssss.s..s...s..s.xsss..............ss.ss....... [ 71%]
..........ssss..s..sssss.s.s..............s....................................s.......................... [ 72%]
..........s........................................s..............s...............s....................... [ 72%]
..ss.............s......................................s........................................s........ [ 72%]
......s...............s......s.ss.ss.........s....s..ssssssssssssssssss....ssss.ss.s...s..s.xss.........ss [ 73%]
s..ss.ss................ssss...s..sssss.s.s...........s......s........s................ss................. [ 73%]
...s.....s.s......s..ss.........sss....s..................................s..............s.....s.......... [ 73%]
.............ss.....................s.......s.......s..s...s.........sss...s.............................. [ 73%]
......s.............s. [ 74%]
sparse/tests/test_construct.py ........................... [ 74%]
sparse/tests/test_csc.py ........... [ 74%]
sparse/tests/test_csr.py ........ [ 74%]
sparse/tests/test_extract.py .. [ 74%]
sparse/tests/test_matrix_io.py ...... [ 74%]
sparse/tests/test_sparsetools.py ...ss.. [ 74%]
sparse/tests/test_spfuncs.py ... [ 74%]
sparse/tests/test_sputils.py ............. [ 74%]
spatial/tests/test__plotutils.py sss [ 74%]
spatial/tests/test__procrustes.py ...... [ 74%]
spatial/tests/test_distance.py ........................................................................... [ 74%]
....................................................................................... [ 74%]
spatial/tests/test_hausdorff.py ............. [ 74%]
spatial/tests/test_kdtree.py ............................................................................. [ 75%]
.......................................................................................................... [ 75%]
................................................. [ 75%]
spatial/tests/test_qhull.py .............................................................................. [ 75%]
.......................................................................................... [ 75%]
spatial/tests/test_slerp.py .............................................................................. [ 76%]
..... [ 76%]
spatial/tests/test_spherical_voronoi.py .................................................................. [ 76%]
...................................................... [ 76%]
spatial/transform/tests/test_rotation.py ................................................................. [ 76%]
........................... [ 76%]
spatial/transform/tests/test_rotation_groups.py .......................................................... [ 76%]
.......................................................................................................... [ 77%]
.................................................................... [ 77%]
spatial/transform/tests/test_rotation_spline.py ....... [ 77%]
special/tests/test_basic.py ....................................................x...X..................... [ 77%]
.......................................................................................................... [ 78%]
.......................................................................................................... [ 78%]
.......................................................................................................... [ 78%]
................................. [ 78%]
special/tests/test_bdtr.py ........................ [ 78%]
special/tests/test_boxcox.py ........ [ 78%]
special/tests/test_cdflib.py .. [ 78%]
special/tests/test_cosine_distr.py ............................... [ 78%]
special/tests/test_cython_special.py ....................................................xxxxx..xx..xx.... [ 79%]
........................................................................................................xx [ 79%]
xx...........xxxx.................................... [ 79%]
special/tests/test_data.py ............................................................................... [ 79%]
............................................x.x...............................................x..x...x.... [ 80%]
................... [ 80%]
special/tests/test_digamma.py ... [ 80%]
special/tests/test_ellip_harm.py ..... [ 80%]
special/tests/test_erfinv.py ............. [ 80%]
special/tests/test_exponential_integrals.py ........ [ 80%]
special/tests/test_faddeeva.py ................. [ 80%]
special/tests/test_gamma.py .. [ 80%]
special/tests/test_gammainc.py ............................. [ 80%]
special/tests/test_hypergeometric.py ...................................................... [ 80%]
special/tests/test_kolmogorov.py ..................................... [ 80%]
special/tests/test_lambertw.py ... [ 80%]
special/tests/test_log_softmax.py .......... [ 80%]
special/tests/test_loggamma.py ...... [ 80%]
special/tests/test_logit.py ...... [ 80%]
special/tests/test_logsumexp.py .......... [ 80%]
special/tests/test_mpmath.py sssssssssssssssssss [ 80%]
special/tests/test_nan_inputs.py ......................................................................... [ 80%]
.......................................................................................................... [ 81%]
............................................... [ 81%]
special/tests/test_ndtr.py .... [ 81%]
special/tests/test_ndtri_exp.py ............ [ 81%]
special/tests/test_orthogonal.py ........................... [ 81%]
special/tests/test_orthogonal_eval.py .................................................................... [ 81%]
.......................... [ 81%]
special/tests/test_owens_t.py .... [ 81%]
special/tests/test_pcf.py .. [ 81%]
special/tests/test_pdtr.py .......... [ 81%]
special/tests/test_precompute_expn_asy.py s [ 81%]
special/tests/test_precompute_gammainc.py ssss [ 81%]
special/tests/test_round.py .. [ 81%]
special/tests/test_sf_error.py ....... [ 81%]
special/tests/test_sici.py .. [ 81%]
special/tests/test_spence.py .. [ 81%]
special/tests/test_spfun_stats.py .... [ 81%]
special/tests/test_sph_harm.py . [ 81%]
special/tests/test_spherical_bessel.py ..................................... [ 82%]
special/tests/test_trig.py .... [ 82%]
special/tests/test_wright_bessel.py ...................................................................... [ 82%]
.......................................................................................................... [ 82%]
.......................................................................................................... [ 82%]
........................xxxxxxxxxxxxxxx............... [ 83%]
special/tests/test_wrightomega.py .......... [ 83%]
special/tests/test_zeta.py ..... [ 83%]
stats/tests/test_binned_statistic.py ......................................... [ 83%]
stats/tests/test_bootstrap.py ........................x..x..x..................................... [ 83%]
stats/tests/test_contingency.py ........... [ 83%]
stats/tests/test_continuous_basic.py ..................................................................... [ 83%]
...........s....xx.......................................................................................s [ 83%]
.........................................ss............................................................... [ 84%]
.s........................................................................................................ [ 84%]
.......................................................................................................... [ 84%]
.......................................................................................................... [ 85%]
.......................................................................................................... [ 85%]
.......................................................................................................... [ 85%]
.......................................................................................................... [ 86%]
.......................................................................................................... [ 86%]
.......................................................................................................... [ 86%]
........................................ [ 86%]
stats/tests/test_crosstab.py ............ [ 86%]
stats/tests/test_discrete_basic.py ....................................................................... [ 87%]
.......................................................................................................... [ 87%]
.......................................................................................................... [ 87%]
..................... [ 87%]
stats/tests/test_discrete_distns.py ................................................. [ 87%]
stats/tests/test_distributions.py ........................................................................ [ 88%]
.......................................................................................................... [ 88%]
.......................................................................................................... [ 88%]
.....................................s............................................................s....... [ 88%]
...............s.......................................................................................... [ 89%]
.......................................................................................................... [ 89%]
........................s.....s........................................................................... [ 89%]
.......................................................................................................... [ 90%]
...........................................................................................s.............. [ 90%]
.s................ [ 90%]
stats/tests/test_entropy.py .................................... [ 90%]
stats/tests/test_fit.py .. [ 90%]
stats/tests/test_hypotests.py ............................................................................ [ 90%]
............................................................................ [ 91%]
stats/tests/test_kdeoth.py ..........ss......ss....ssssssssssssssss..ss......ss......ss......ss....sssssss [ 91%]
sssssssss..ss......ss......ss......ss....ssssssssssssssss..ss......ss......ss......ss....ssssssssssssssss. [ 91%]
.ss......ss......ss......ss....ssssssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss......s [ 91%]
s......ss......ss....ssssssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss......ss......ss. [ 92%]
.....ss....ssssssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss......ss......ss......ss... [ 92%]
.ssssssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss......ss....sssssssssssssssssssssssss [ 92%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 93%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 93%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 93%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 94%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 94%]
sssssssssssssssssssss..ss......ss....ssssssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss. [ 94%]
.....ss......ss......ss....ssssssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss......ss... [ 94%]
...ss......ss....ssssssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss......ss......ss..... [ 95%]
.ss....ssssssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss......ss......ss......ss....sss [ 95%]
sssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss......ss......ss......ss....sssssssssssss [ 95%]
sss..ss......ss......ss......ss....ssssssssssssssss..ss......ss......s... [ 96%]
stats/tests/test_morestats.py ............................................................................ [ 96%]
...................................................xxx...s..........................s..................... [ 96%]
...................s................................................................................ [ 96%]
stats/tests/test_mstats_basic.py ......s..s............................................................... [ 97%]
.......................................... [ 97%]
stats/tests/test_mstats_extras.py ......... [ 97%]
stats/tests/test_multivariate.py ......................................................................... [ 97%]
............................................................................ [ 97%]
stats/tests/test_qmc.py ..............................s.s.s.s.s.ssss............................s.s.s.s.s. [ 97%]
s.sss................ [ 97%]
stats/tests/test_rank.py ....................... [ 98%]
stats/tests/test_relative_risk.py ............... [ 98%]
stats/tests/test_stats.py ................................................................................ [ 98%]
.......................................................................................................... [ 98%]
.......................................................................................................... [ 98%]
.......................................................................................................... [ 99%]
.......................................................................................x.................. [ 99%]
....x.....xx......................ss.....s..........xx..x............sx................................... [ 99%]
...................................................... [ 99%]
stats/tests/test_tukeylambda_stats.py ... [100%]

======================================================= FAILURES ========================================================
___________________________________________ TestLinprogIPSparse.test_bug_6139 ___________________________________________
../.pyenv/versions/scipytest/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py:1869: in test_bug_6139
super().test_bug_6139()
class = <class 'scipy.optimize.tests.test_linprog.TestLinprogIPSparse'>
self = <scipy.optimize.tests.test_linprog.TestLinprogIPSparse object at 0x2bc88be80>
../.pyenv/versions/scipytest/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py:1254: in test_bug_6139
_assert_success(res, desired_fun=14.95,
A_eq = array([[ 1., 0., 0.],
[-1000., 0., -1000.]])
A_ub = array([[ -0., -1000000., -1010000.]])
b_eq = array([ 5.e+00, -1.e+04])
b_ub = array([-10000000.])
bounds = (None, None)
c = array([1, 1, 1])
res = con: array([ 0. , -0.00011065])
fun: 14.949999999036962
message: 'The solution does not satisfy the ...nit: 5
slack: array([-0.00206951])
status: 4
success: False
x: array([5. , 4.95000011, 4.99999989])
self = <scipy.optimize.tests.test_linprog.TestLinprogIPSparse object at 0x2bc88be80>
../.pyenv/versions/scipytest/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py:67: in _assert_success
raise AssertionError(msg)
E AssertionError: linprog status 4, message: The solution does not satisfy the constraints within the required tolerance of 3.16E-04, yet no errors were raised and there is no certificate of infeasibility or unboundedness. Check whether the slack and constraint residuals are acceptable; if not, consider enabling presolve, adjusting the tolerance option(s), and/or using a different method. Please consider submitting a bug report.
atol = 1e-08
desired_fun = 14.95
desired_x = array([5. , 4.95, 5. ])
msg = 'linprog status 4, message: The solution does not satisfy the constraints within the required tolerance of 3.16E-04, y...presolve, adjusting the tolerance option(s), and/or using a different method. Please consider submitting a bug report.'
res = con: array([ 0. , -0.00011065])
fun: 14.949999999036962
message: 'The solution does not satisfy the ...nit: 5
slack: array([-0.00206951])
status: 4
success: False
x: array([5. , 4.95000011, 4.99999989])
rtol = 1e-08
_______________________________________ TestLinprogIPSparsePresolve.test_bug_6139 _______________________________________
../.pyenv/versions/scipytest/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py:1919: in test_bug_6139
super().test_bug_6139()
class = <class 'scipy.optimize.tests.test_linprog.TestLinprogIPSparsePresolve'>
self = <scipy.optimize.tests.test_linprog.TestLinprogIPSparsePresolve object at 0x2bcce0220>
../.pyenv/versions/scipytest/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py:1254: in test_bug_6139
_assert_success(res, desired_fun=14.95,
A_eq = array([[ 1., 0., 0.],
[-1000., 0., -1000.]])
A_ub = array([[ -0., -1000000., -1010000.]])
b_eq = array([ 5.e+00, -1.e+04])
b_ub = array([-10000000.])
bounds = (None, None)
c = array([1, 1, 1])
res = con: array([ 0. , -0.00011065])
fun: 14.949999999036962
message: 'The solution does not satisfy the ...nit: 5
slack: array([-0.00206951])
status: 4
success: False
x: array([5. , 4.95000011, 4.99999989])
self = <scipy.optimize.tests.test_linprog.TestLinprogIPSparsePresolve object at 0x2bcce0220>
../.pyenv/versions/scipytest/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py:67: in assert_success
raise AssertionError(msg)
E AssertionError: linprog status 4, message: The solution does not satisfy the constraints within the required tolerance of 3.16E-04, yet no errors were raised and there is no certificate of infeasibility or unboundedness. Check whether the slack and constraint residuals are acceptable; if not, consider enabling presolve, adjusting the tolerance option(s), and/or using a different method. Please consider submitting a bug report.
atol = 1e-08
desired_fun = 14.95
desired_x = array([5. , 4.95, 5. ])
msg = 'linprog status 4, message: The solution does not satisfy the constraints within the required tolerance of 3.16E-04, y...presolve, adjusting the tolerance option(s), and/or using a different method. Please consider submitting a bug report.'
res = con: array([ 0. , -0.00011065])
fun: 14.949999999036962
message: 'The solution does not satisfy the ...nit: 5
slack: array([-0.00206951])
status: 4
success: False
x: array([5. , 4.95000011, 4.99999989])
rtol = 1e-08
_____________________________________________ test_maxiter_worsening[gmres] _____________________________________________
../.pyenv/versions/scipytest/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_iterative.py:486: in test_maxiter_worsening
assert
(error <= tol*best_error)
E AssertionError
A = array([[-0.11127953+0.j , 0. +0.j ,
0. +0.j , 0.16127953+0.j ],
...,
[ 0.11127953+0.j , 0. +0.j ,
0. +0.j , -0.16127953+0.j ]])
best_error = 0.01622706276063635
error = 0.08845091625842058
info = 5
maxiter = 5
solver = <function gmres at 0x134fe9d30>
tol = 5
v = array([1., 1., 1., 1.])
x = array([-1.18262948e+15+1.81939327e+11j, -3.76592219e-03-1.59022831e-01j,
-3.05910974e-03+1.58937041e-01j, -8.15989803e+14+1.25534361e+11j])
=================================================== warnings summary ====================================================
optimize/tests/test__linprog_clean_inputs.py: 2 warnings
optimize/tests/test_linprog.py: 10 warnings
/Users/david/.pyenv/versions/scipytest/lib/python3.9/site-packages/numpy/core/numeric.py:2440: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
a1, a2 = asarray(a1), asarray(a2)

optimize/tests/test_minimize_constrained.py::TestBoundedNelderMead::test_outside_bounds_warning
/Users/david/.pyenv/versions/scipytest/lib/python3.9/site-packages/scipy/optimize/tests/test_minimize_constrained.py:742: OptimizeWarning: Initial guess is not within the specified bounds
minimize(prob.fun, [-10, 8],

signal/tests/test_ltisys.py::TestPlacePoles::test_complex
/Users/david/.pyenv/versions/scipytest/lib/python3.9/site-packages/numpy/linalg/linalg.py:2158: RuntimeWarning: divide by zero encountered in det
r = _umath_linalg.det(a, signature=signature)

signal/tests/test_ltisys.py::TestPlacePoles::test_complex
/Users/david/.pyenv/versions/scipytest/lib/python3.9/site-packages/numpy/linalg/linalg.py:2158: RuntimeWarning: invalid value encountered in det
r = _umath_linalg.det(a, signature=signature)

spatial/tests/test_distance.py: 14 warnings
/Users/david/.pyenv/versions/scipytest/lib/python3.9/site-packages/scipy/spatial/distance.py:207: DeprecationWarning: 'wminkowski' metric is deprecated and will be removed in SciPy 1.8.0, use 'minkowski' instead.
kwargs = _validate_kwargs((XA, XB), mA + mB, n, **kwargs)

spatial/tests/test_distance.py: 14 warnings
/Users/david/.pyenv/versions/scipytest/lib/python3.9/site-packages/scipy/spatial/distance.py:275: DeprecationWarning: 'wminkowski' metric is deprecated and will be removed in SciPy 1.8.0, use 'minkowski' instead.
kwargs = _validate_kwargs(X, m, n, **kwargs)

stats/tests/test_continuous_basic.py: 14 warnings
stats/tests/test_distributions.py: 4 warnings
stats/tests/test_stats.py: 2 warnings
/Users/david/.pyenv/versions/scipytest/lib/python3.9/site-packages/scipy/stats/_continuous_distns.py:624: RuntimeWarning: overflow encountered in _beta_ppf
return _boost._beta_ppf(q, a, b)

stats/tests/test_continuous_basic.py::test_cont_basic[500-200-beta-arg4]
stats/tests/test_continuous_basic.py::test_cont_basic[500-200-beta-arg4]
stats/tests/test_continuous_basic.py::test_methods_with_lists[beta-args4-isf]
stats/tests/test_distributions.py::TestBeta::test_issue_12794
stats/tests/test_stats.py::TestNumericalInverseHermite::test_inaccurate_CDF
/Users/david/.pyenv/versions/scipytest/lib/python3.9/site-packages/scipy/stats/_continuous_distns.py:621: RuntimeWarning: overflow encountered in _beta_isf
return _boost._beta_isf(x, a, b)

stats/tests/test_discrete_basic.py::test_discrete_basic[nbinom-arg13-False]
stats/tests/test_discrete_basic.py::test_moments[nbinom-arg13]
/Users/david/.pyenv/versions/scipytest/lib/python3.9/site-packages/scipy/stats/_discrete_distns.py:339: RuntimeWarning: overflow encountered in _nbinom_ppf
return _boost._nbinom_ppf(q, n, p)

stats/tests/test_discrete_basic.py::test_discrete_basic[nbinom-arg13-False]
/Users/david/.pyenv/versions/scipytest/lib/python3.9/site-packages/scipy/stats/_discrete_distns.py:336: RuntimeWarning: overflow encountered in _nbinom_isf
return _boost._nbinom_isf(x, n, p)

stats/tests/test_discrete_distns.py::TestNCH::test_nchypergeom_wallenius_naive
/Users/david/.pyenv/versions/scipytest/lib/python3.9/site-packages/numpy/lib/function_base.py:2246: RuntimeWarning: invalid value encountered in mean (vectorized)
outputs = ufunc(*inputs)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
================================================ short test summary info ================================================
FAILED optimize/tests/test_linprog.py::TestLinprogIPSparse::test_bug_6139 - AssertionError: linprog status 4, message:...
FAILED optimize/tests/test_linprog.py::TestLinprogIPSparsePresolve::test_bug_6139 - AssertionError: linprog status 4, ...
FAILED sparse/linalg/isolve/tests/test_iterative.py::test_maxiter_worsening[gmres] - AssertionError
=== 3 failed, 32069 passed, 2583 skipped, 11134 deselected, 105 xfailed, 9 xpassed, 72 warnings in 286.98s (0:04:46) ====

</details>

Thanks @davidhariri! That looks really good. To complete the picture, can you confirm your exact macOS version and the compilers you used?

@davidhariri could you run python -c "import scipy; scipy.test()" and tell us if that succeeded without crashes? It's still a little unclear to me if the open issues happen on all M1 machines, or a (potentially small) subset. We can release official wheels if it's fine for a (large) majority of people, but not if there are crashes for all users.

Just to confirm - would this mean adding universal2 wheels to the 1.7.2 release, cutting a new release for 1.7.3, or waiting until 1.8.0?

I think we need a 1.7.3 release for this. Ideally we don't wait for 1.8.0, and we should not add new wheels to 1.7.2 because if we then need to remove them again because of too many users with issues, we cannot yank 1.7.2 without breaking Python 3.10 users.

Thin arm64 and universal2 wheels; thin wheels are preferred.

Here's M1 MBPro, macOS Monterey 12.0.1
Fresh conda env:

Python 3.9.7 | packaged by conda-forge | (default, Sep 29 2021, 19:22:19) 
[Clang 11.1.0 ] on darwin

OpenBLAS from homebrew with the path exported.
Install procedure:

mamba create -y -n napari-env2 python=3.9
conda activate napari-env2
pip install scipy

Test summary:

=========================== short test summary info ============================
FAILED Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py::TestLinprogIPSparse::test_bug_6139
FAILED Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py::TestLinprogIPSparsePresolve::test_bug_6139
FAILED Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_iterative.py::test_maxiter_worsening[gmres]
= 3 failed, 32071 passed, 2581 skipped, 11134 deselected, 105 xfailed, 9 xpassed, 72 warnings in 272.55s (0:04:32) =

Full test output:


============================= test session starts ==============================
platform darwin -- Python 3.9.7, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /Users/piotrsobolewski
collected 45903 items / 11134 deselected / 34769 selected                      

Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/_build_utils/tests/test_scipy_version.py . [  0%]
                                                                         [  0%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/_lib/tests/test__gcutils.py . [  0%]
.....                                                                    [  0%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/_lib/tests/test__pep440.py . [  0%]
........                                                                 [  0%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/_lib/tests/test__testutils.py . [  0%]
.                                                                        [  0%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/_lib/tests/test__threadsafety.py . [  0%]
.                                                                        [  0%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/_lib/tests/test__util.py . [  0%]
.....................                                                    [  0%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/_lib/tests/test_bunch.py . [  0%]
...........................                                              [  0%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/_lib/tests/test_ccallback.py . [  0%]
...                                                                      [  0%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/_lib/tests/test_deprecation.py . [  0%]
                                                                         [  0%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/_lib/tests/test_import_cycles.py . [  0%]
                                                                         [  0%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/_lib/tests/test_tmpdirs.py . [  0%]
..                                                                       [  0%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/cluster/tests/test_disjoint_set.py . [  0%]
....................                                                     [  0%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/cluster/tests/test_hierarchy.py . [  0%]
........................................................................ [  0%]
.......sss........                                                       [  0%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/cluster/tests/test_vq.py . [  0%]
........................                                                 [  0%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/constants/tests/test_codata.py . [  0%]
......                                                                   [  0%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/constants/tests/test_constants.py . [  0%]
..                                                                       [  0%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/fft/_pocketfft/tests/test_basic.py . [  0%]
........................................................................ [  0%]
........................................................................ [  1%]
........................................................................ [  1%]
........................................................................ [  1%]
........................................................................ [  1%]
........................................................................ [  1%]
...........................                                              [  1%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/fft/_pocketfft/tests/test_real_transforms.py . [  1%]
........................................................................ [  2%]
........................................................................ [  2%]
........................................................................ [  2%]
........................................................................ [  2%]
........................................................................ [  3%]
........................................................................ [  3%]
........................................................................ [  3%]
........................................................................ [  3%]
........................................................................ [  3%]
........................................................................ [  4%]
........................................................................ [  4%]
........................................................................ [  4%]
........................................................................ [  4%]
........................................................................ [  4%]
........................................................................ [  5%]
........................................................................ [  5%]
........................................................................ [  5%]
........................................................................ [  5%]
........................................................................ [  5%]
........................................................................ [  6%]
........................................................................ [  6%]
........................................................................ [  6%]
........................................................................ [  6%]
........................................................................ [  6%]
........................................................................ [  7%]
........................................................................ [  7%]
........................................................................ [  7%]
...                                                                      [  7%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/fft/tests/test_backend.py . [  7%]
...........................................                              [  7%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/fft/tests/test_fft_function.py . [  7%]
                                                                         [  7%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/fft/tests/test_fftlog.py . [  7%]
.......................................                                  [  7%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/fft/tests/test_helper.py . [  7%]
.................                                                        [  7%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/fft/tests/test_multithreading.py . [  7%]
.......................................................                  [  8%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/fft/tests/test_numpy.py . [  8%]
........................................................................ [  8%]
.....................................................                    [  8%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/fft/tests/test_real_transforms.py . [  8%]
........................................................................ [  8%]
........................................................................ [  8%]
........................................................................ [  9%]
........................................................................ [  9%]
........................................................................ [  9%]
........................................................................ [  9%]
........................................................................ [  9%]
........................................................................ [ 10%]
........................................................................ [ 10%]
........................................................................ [ 10%]
........................................................................ [ 10%]
........................................................................ [ 10%]
........................................................................ [ 11%]
........................................................................ [ 11%]
........................................................................ [ 11%]
........................................................................ [ 11%]
........................................................................ [ 11%]
........................................................................ [ 12%]
........................................................................ [ 12%]
........................................................................ [ 12%]
........................................................................ [ 12%]
........................................................................ [ 12%]
........................................................................ [ 13%]
........................................................................ [ 13%]
........................................................................ [ 13%]
........................................................................ [ 13%]
........................................................................ [ 13%]
........................................................................ [ 14%]
........................................................................ [ 14%]
........................................................................ [ 14%]
........................................................................ [ 14%]
........................................................................ [ 15%]
...............................                                          [ 15%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/fftpack/tests/test_basic.py . [ 15%]
.....x.................................................................. [ 15%]
........................................................................ [ 15%]
........................................................................ [ 15%]
........................................................................ [ 15%]
.......                                                                  [ 15%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/fftpack/tests/test_helper.py . [ 15%]
...                                                                      [ 15%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/fftpack/tests/test_import.py . [ 15%]
                                                                         [ 15%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/fftpack/tests/test_pseudo_diffs.py . [ 15%]
............................                                             [ 16%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/fftpack/tests/test_real_transforms.py . [ 16%]
........................................................................ [ 16%]
........................................................................ [ 16%]
........................................................................ [ 16%]
.......                                                                  [ 16%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/integrate/_ivp/tests/test_ivp.py . [ 16%]
.......................                                                  [ 16%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/integrate/_ivp/tests/test_rk.py . [ 16%]
.........                                                                [ 16%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/integrate/tests/test__quad_vec.py . [ 16%]
...................                                                      [ 16%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/integrate/tests/test_banded_ode_solvers.py . [ 16%]
                                                                         [ 16%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/integrate/tests/test_bvp.py . [ 16%]
...............                                                          [ 16%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/integrate/tests/test_integrate.py . [ 16%]
..............................................                           [ 17%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/integrate/tests/test_odeint_jac.py . [ 17%]
.                                                                        [ 17%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/integrate/tests/test_quadpack.py . [ 17%]
...............................                                          [ 17%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/integrate/tests/test_quadrature.py . [ 17%]
.....................                                                    [ 17%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/interpolate/tests/test_bsplines.py . [ 17%]
......................................................................x. [ 17%]
......................                                                   [ 17%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/interpolate/tests/test_fitpack.py . [ 17%]
...............s....                                                     [ 17%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/interpolate/tests/test_fitpack2.py . [ 17%]
.....................................................                    [ 17%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/interpolate/tests/test_interpnd.py . [ 17%]
....................                                                     [ 17%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/interpolate/tests/test_interpolate.py . [ 17%]
........................................................................ [ 17%]
........................................................................ [ 18%]
............                                                             [ 18%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/interpolate/tests/test_ndgriddata.py . [ 18%]
...........                                                              [ 18%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/interpolate/tests/test_pade.py . [ 18%]
...                                                                      [ 18%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/interpolate/tests/test_polyint.py . [ 18%]
...................................................                      [ 18%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/interpolate/tests/test_rbf.py . [ 18%]
.........                                                                [ 18%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/interpolate/tests/test_rbfinterp.py . [ 18%]
........................................................................ [ 18%]
........................................................................ [ 18%]
.....................................                                    [ 18%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/interpolate/tests/test_regression.py . [ 18%]
                                                                         [ 18%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/arff/tests/test_arffread.py . [ 18%]
..........................                                               [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/harwell_boeing/tests/test_fortran_format.py . [ 19%]
..........                                                               [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/harwell_boeing/tests/test_hb.py . [ 19%]
.                                                                        [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/matlab/tests/test_byteordercodes.py . [ 19%]
.                                                                        [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/matlab/tests/test_mio.py . [ 19%]
........................................................                 [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/matlab/tests/test_mio5_utils.py . [ 19%]
.....                                                                    [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/matlab/tests/test_mio_funcs.py . [ 19%]
                                                                         [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/matlab/tests/test_mio_utils.py . [ 19%]
.                                                                        [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/matlab/tests/test_miobase.py . [ 19%]
                                                                         [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/matlab/tests/test_pathological.py . [ 19%]
.                                                                        [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/matlab/tests/test_streams.py . [ 19%]
..........                                                               [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/tests/test_fortran.py . [ 19%]
..........                                                               [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/tests/test_idl.py . [ 19%]
.................................................................        [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/tests/test_mmio.py . [ 19%]
........................................................................ [ 19%]
.                                                                        [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/tests/test_netcdf.py . [ 19%]
........................                                                 [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/tests/test_paths.py . [ 19%]
..........                                                               [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/io/tests/test_wavfile.py . [ 19%]
......................                                                   [ 19%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_basic.py . [ 19%]
...........................................................s............ [ 20%]
.......................................s............................     [ 20%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_blas.py . [ 20%]
..................................................                       [ 20%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_build.py s [ 20%]
                                                                         [ 20%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_cython_blas.py . [ 20%]
.....                                                                    [ 20%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_cython_lapack.py . [ 20%]
.                                                                        [ 20%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_decomp.py . [ 20%]
.......x................................................................ [ 20%]
........................................................................ [ 20%]
........................................................................ [ 21%]
...........................................................s.x.......... [ 21%]
.....................                                                    [ 21%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_decomp_cholesky.py . [ 21%]
...............                                                          [ 21%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_decomp_cossin.py . [ 21%]
........................................................................ [ 21%]
..................                                                       [ 21%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_decomp_ldl.py . [ 21%]
....                                                                     [ 21%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_decomp_polar.py . [ 21%]
.                                                                        [ 21%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_decomp_update.py . [ 21%]
........................................................................ [ 21%]
........................................................................ [ 22%]
........................................................................ [ 22%]
........................................................................ [ 22%]
........................................................................ [ 22%]
........................................................................ [ 22%]
........................................................................ [ 23%]
........................................................................ [ 23%]
........................................................................ [ 23%]
................                                                         [ 23%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_fblas.py . [ 23%]
........................................................................ [ 23%]
........................................................                 [ 23%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_interpolative.py . [ 23%]
...............................................                          [ 24%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_lapack.py . [ 24%]
........................................................................ [ 24%]
......s................................s................................ [ 24%]
........................................................................ [ 24%]
........................................................................ [ 24%]
........................................................................ [ 25%]
........................................................................ [ 25%]
........................................................................ [ 25%]
........................................................................ [ 25%]
........................................................................ [ 26%]
........................................................................ [ 26%]
........................................................................ [ 26%]
........................................................................ [ 26%]
........................................................................ [ 26%]
........................................................................ [ 27%]
........................................................................ [ 27%]
........................................................................ [ 27%]
........................................................................ [ 27%]
........................................................................ [ 27%]
........................................................................ [ 28%]
........................................................................ [ 28%]
........................................................................ [ 28%]
........................................................................ [ 28%]
........................................................................ [ 28%]
........................................................................ [ 29%]
........................................................................ [ 29%]
........................................................................ [ 29%]
................                                                         [ 29%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_matfuncs.py . [ 29%]
....................................X...............                     [ 29%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_matmul_toeplitz.py . [ 29%]
..                                                                       [ 29%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_misc.py . [ 29%]
                                                                         [ 29%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_procrustes.py . [ 29%]
.........                                                                [ 29%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_sketches.py . [ 29%]
....                                                                     [ 29%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_solve_toeplitz.py . [ 29%]
.....X                                                                   [ 29%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_solvers.py . [ 29%]
.x......                                                                 [ 29%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/linalg/tests/test_special_matrices.py . [ 29%]
........................................................................ [ 30%]
..............................................                           [ 30%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/misc/tests/test_common.py . [ 30%]
..                                                                       [ 30%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/misc/tests/test_doccer.py . [ 30%]
....                                                                     [ 30%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/ndimage/tests/test_c_api.py . [ 30%]
..                                                                       [ 30%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/ndimage/tests/test_datatypes.py . [ 30%]
.                                                                        [ 30%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/ndimage/tests/test_filters.py . [ 30%]
........................................................................ [ 30%]
........................................................................ [ 30%]
........................................................................ [ 30%]
........................................................................ [ 31%]
........................................................................ [ 31%]
........................................................................ [ 31%]
........................................................................ [ 31%]
........................................................................ [ 31%]
........................................................................ [ 32%]
........................................................................ [ 32%]
........................................................................ [ 32%]
........................................................................ [ 32%]
........................................................................ [ 32%]
........................................................................ [ 33%]
........................................................................ [ 33%]
........................................................................ [ 33%]
........................................................................ [ 33%]
........................................................................ [ 33%]
........................................................................ [ 34%]
........................................................................ [ 34%]
........................................................................ [ 34%]
.................................                                        [ 34%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/ndimage/tests/test_fourier.py . [ 34%]
........................................................................ [ 34%]
...                                                                      [ 34%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/ndimage/tests/test_interpolation.py . [ 34%]
........................................................................ [ 35%]
........................................................................ [ 35%]
........................................................................ [ 35%]
........................................................................ [ 35%]
........................................................................ [ 35%]
........................................................................ [ 36%]
........................................................................ [ 36%]
........................................................................ [ 36%]
........................................................................ [ 36%]
........................................................................ [ 36%]
........................................................................ [ 37%]
........................................................................ [ 37%]
........................................................................ [ 37%]
...................................................                      [ 37%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/ndimage/tests/test_measurements.py . [ 37%]
........................................................................ [ 37%]
..............................................                           [ 38%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/ndimage/tests/test_morphology.py . [ 38%]
........................................................................ [ 38%]
........................................................................ [ 38%]
........................................................................ [ 38%]
........................................................................ [ 38%]
........................................................................ [ 39%]
........................................................................ [ 39%]
........................................................................ [ 39%]
........................................................................ [ 39%]
........................................................................ [ 39%]
........................................................................ [ 40%]
........................................................................ [ 40%]
.........................                                                [ 40%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/ndimage/tests/test_splines.py . [ 40%]
.................                                                        [ 40%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/odr/tests/test_odr.py . [ 40%]
...............s                                                         [ 40%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/_trustregion_constr/tests/test_canonical_constraint.py . [ 40%]
.....                                                                    [ 40%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/_trustregion_constr/tests/test_projections.py . [ 40%]
.........                                                                [ 40%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/_trustregion_constr/tests/test_qp_subproblem.py . [ 40%]
......................                                                   [ 40%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/_trustregion_constr/tests/test_report.py . [ 40%]
.                                                                        [ 40%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test__basinhopping.py . [ 40%]
............................                                             [ 40%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test__differential_evolution.py . [ 40%]
..................................................                       [ 40%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test__dual_annealing.py . [ 40%]
.........................................                                [ 40%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test__linprog_clean_inputs.py . [ 40%]
............                                                             [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test__numdiff.py . [ 41%]
..............................                                           [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test__remove_redundancy.py . [ 41%]
...................................................................      [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test__root.py . [ 41%]
...                                                                      [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test__shgo.py . [ 41%]
...............................................                          [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test__spectral.py . [ 41%]
...                                                                      [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_cobyla.py . [ 41%]
...                                                                      [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_constraint_conversion.py . [ 41%]
.......                                                                  [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_constraints.py . [ 41%]
.........                                                                [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_cython_optimize.py . [ 41%]
....                                                                     [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_differentiable_functions.py . [ 41%]
.........                                                                [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_hessian_update_strategy.py . [ 41%]
...                                                                      [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_lbfgsb_hessinv.py . [ 41%]
.                                                                        [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_lbfgsb_setulb.py . [ 41%]
                                                                         [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_least_squares.py . [ 41%]
........................................................................ [ 41%]
.........................................                                [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_linear_assignment.py . [ 41%]
...............                                                          [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_linesearch.py . [ 41%]
..........                                                               [ 41%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py . [ 41%]
........................................................................ [ 42%]
...sss.................................................................. [ 42%]
.........ss............................................................. [ 42%]
............s..s.ss..................................................... [ 42%]
......................s................................................. [ 43%]
........................sFX............................................. [ 43%]
.............................sFsX....................................... [ 43%]
.....................................sssss.............................. [ 43%]
................................................ssss.................... [ 43%]
......................................................s................. [ 44%]
.......................................................................s [ 44%]
.......................................                                  [ 44%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_lsq_common.py . [ 44%]
.........                                                                [ 44%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_lsq_linear.py . [ 44%]
.................                                                        [ 44%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_minimize_constrained.py . [ 44%]
...............x                                                         [ 44%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_minpack.py . [ 44%]
...............................................................          [ 44%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_nnls.py . [ 44%]
.                                                                        [ 44%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_nonlin.py . [ 44%]
..............................                                           [ 44%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_optimize.py . [ 44%]
...........X.............X.............X.............X.................. [ 44%]
.....................................x.................................. [ 45%]
..................................................                       [ 45%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_quadratic_assignment.py . [ 45%]
.............                                                            [ 45%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_regression.py . [ 45%]
..                                                                       [ 45%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_slsqp.py . [ 45%]
....................................                                     [ 45%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_tnc.py . [ 45%]
.................                                                        [ 45%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_trustregion.py . [ 45%]
.......                                                                  [ 45%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_trustregion_exact.py . [ 45%]
.........                                                                [ 45%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_trustregion_krylov.py . [ 45%]
....                                                                     [ 45%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_zeros.py . [ 45%]
.................................                                        [ 45%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_array_tools.py . [ 45%]
.....                                                                    [ 45%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_bsplines.py . [ 45%]
...........                                                              [ 45%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_cont2discrete.py . [ 45%]
.......................                                                  [ 45%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_dltisys.py . [ 45%]
...............................                                          [ 45%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_filter_design.py . [ 45%]
.........................................................s.............. [ 46%]
........................................................................ [ 46%]
....................................                                     [ 46%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_fir_filter_design.py . [ 46%]
................................                                         [ 46%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_ltisys.py . [ 46%]
........................................................................ [ 46%]
..........................                                               [ 46%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_max_len_seq.py . [ 46%]
.                                                                        [ 46%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_peak_finding.py . [ 46%]
...............................................                          [ 46%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_result_type.py . [ 46%]
....                                                                     [ 46%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_savitzky_golay.py . [ 46%]
...........                                                              [ 47%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_signaltools.py . [ 47%]
........................................................................ [ 47%]
........................................................................ [ 47%]
........................................................................ [ 47%]
........................................................................ [ 47%]
........................................................................ [ 48%]
........................................................................ [ 48%]
........................................................................ [ 48%]
........................................................................ [ 48%]
........................................................................ [ 48%]
........................................................................ [ 49%]
........................................................................ [ 49%]
........................................................................ [ 49%]
........................................................................ [ 49%]
........................................................................ [ 49%]
........................................................................ [ 50%]
........................................................................ [ 50%]
........................................................................ [ 50%]
........................................................................ [ 50%]
........................................................................ [ 50%]
........................................................................ [ 51%]
........................................................................ [ 51%]
........................................................................ [ 51%]
........................................................................ [ 51%]
........................................................................ [ 51%]
.......ss............................................................... [ 52%]
...........................................                              [ 52%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_spectral.py . [ 52%]
........................................................................ [ 52%]
.....................................                                    [ 52%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_upfirdn.py . [ 52%]
........................................................................ [ 52%]
........................................................................ [ 53%]
........................................................................ [ 53%]
........................................................................ [ 53%]
...                                                                      [ 53%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_waveforms.py . [ 53%]
.................................                                        [ 53%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_wavelets.py . [ 53%]
......                                                                   [ 53%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_windows.py . [ 53%]
............................................                             [ 53%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_connected_components.py . [ 53%]
.....                                                                    [ 53%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_conversions.py . [ 53%]
..                                                                       [ 53%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_flow.py . [ 53%]
..............                                                           [ 53%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_graph_laplacian.py . [ 53%]
...                                                                      [ 53%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_matching.py . [ 53%]
...................s                                                     [ 53%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_reordering.py . [ 53%]
..                                                                       [ 53%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_shortest_path.py . [ 53%]
.............................                                            [ 53%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_spanning_tree.py . [ 53%]
                                                                         [ 53%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/csgraph/tests/test_traversal.py . [ 53%]
...                                                                      [ 53%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/dsolve/tests/test_linsolve.py . [ 53%]
s.s.s.s.ss.......s....................                                   [ 54%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py . [ 54%]
..............................                                           [ 54%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/eigen/lobpcg/tests/test_lobpcg.py . [ 54%]
.............                                                            [ 54%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_gcrotmk.py . [ 54%]
......                                                                   [ 54%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_iterative.py . [ 54%]
......................F..xxxx.................                           [ 54%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_lgmres.py . [ 54%]
.......                                                                  [ 54%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_lsmr.py . [ 54%]
.............                                                            [ 54%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_lsqr.py . [ 54%]
....                                                                     [ 54%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_minres.py . [ 54%]
......                                                                   [ 54%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_utils.py . [ 54%]
                                                                         [ 54%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/tests/test_expm_multiply.py . [ 54%]
................                                                         [ 54%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/tests/test_interface.py . [ 54%]
.............                                                            [ 54%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/tests/test_matfuncs.py . [ 54%]
................................                                         [ 54%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/tests/test_norm.py . [ 54%]
......                                                                   [ 54%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/tests/test_onenormest.py s [ 54%]
s.s..                                                                    [ 54%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/tests/test_pydata_sparse.py s [ 54%]
sssssssssssssssssssssssssssssssssssssssssssssssssss                      [ 54%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/tests/test_base.py . [ 54%]
........................................................................ [ 55%]
....s................................................................... [ 55%]
........................................................................ [ 55%]
...........s............................................................ [ 55%]
........s.ssssss........................................................ [ 55%]
.............s..................................................sss.ss.. [ 56%]
......ssssss............................................................ [ 56%]
.........s..................................................sss.s....... [ 56%]
....ssssss.............................................................. [ 56%]
......s......sssss.ssssssssssssssssssssssssssssssssssss.............x... [ 56%]
.....ssssss............................................................. [ 57%]
.......s......sssss.ssssssssssssssssssssssssssssssssssss..sss.s.x.s..... [ 57%]
......................................................................s. [ 57%]
.....sssss.ssssssssssssssssssssssssssssssssssss.......s...........xx.x.. [ 57%]
........................................................................ [ 57%]
.s...................................................................... [ 58%]
sss..xx................................................................. [ 58%]
.........s.............................................................. [ 58%]
...sss..xx.............................................................. [ 58%]
.........s......sssss.ssssssssssssssssssssssssssssssssssss.............. [ 58%]
....xx.x.sssxx.ssssss................................................... [ 59%]
................s......sssss.ssssssssssssssssssssssssssssssssssss....... [ 59%]
.....x......sss..........ss.ss.................s......s...ssssssssssssss [ 59%]
sss.....sss.ss.....s..s.x................s..ss.................sssssxxs. [ 59%]
.sssss.s.s...........s.......ss.ss.............s.....s..ssssssssssssssss [ 60%]
ss....ssss.s..s...s..s.xsss..............ss.ss.................ssss..s.. [ 60%]
sssss.s.s..............s....................................s........... [ 60%]
.........................s........................................s..... [ 60%]
.........s...............s.........................ss.............s..... [ 60%]
.................................s...................................... [ 61%]
..s..............s...............s......s.ss.ss.........s....s..ssssssss [ 61%]
ssssssssss....ssss.ss.s...s..s.xss.........sss..ss.ss................sss [ 61%]
s...s..sssss.s.s...........s......s........s................ss.......... [ 61%]
..........s.....s.s......s..ss.........sss....s......................... [ 61%]
.........s..............s.....s.......................ss................ [ 62%]
.....s.......s.......s..s...s.........sss...s........................... [ 62%]
.........s.............s.......ss.ss.................s......s...ssssssss [ 62%]
sssssssss.....sss.ss.....s..s.x................s..ss.................sss [ 62%]
ssxxs..sssss.s.s...........s.......ss.ss.............s.....s..ssssssssss [ 62%]
ssssssss....ssss.s..s...s..s.xsss..............ss.ss.................sss [ 63%]
s..s..sssss.s.s..............s....................................s..... [ 63%]
...............................s........................................ [ 63%]
s..............s...............s.........................ss............. [ 63%]
s......................................s................................ [ 63%]
........s..............s...............s......s.ss.ss.........s....s..ss [ 64%]
ssssssssssssssss....ssss.ss.s...s..s.xss.........sss..ss.ss............. [ 64%]
...ssss...s..sssss.s.s...........s......s........s................ss.... [ 64%]
................s.....s.s......s..ss.........sss....s................... [ 64%]
...............s..............s.....s.......................ss.......... [ 65%]
...........s.......s.......s..s...s.........sss...s..................... [ 65%]
...............s.............s.......ss.ss.................s......s...ss [ 65%]
sssssssssssssss.....sss.ss.....s..s.x................s..ss.............. [ 65%]
...sssssxxs..sssss.s.s...........s.......ss.ss.............s.....s..ssss [ 65%]
ssssssssssssss....ssss.s..s...s..s.xsss..............ss.ss.............. [ 66%]
...ssss..s..sssss.s.s..............s.................................... [ 66%]
s....................................s.................................. [ 66%]
......s..............s...............s.........................ss....... [ 66%]
......s......................................s.......................... [ 66%]
..............s..............s...............s......s.ss.ss.........s... [ 67%]
.s..ssssssssssssssssss....ssss.ss.s...s..s.xss.........sss..ss.ss....... [ 67%]
.........ssss...s..sssss.s.s...........s......s........s................ [ 67%]
ss....................s.....s.s......s..ss.........sss....s............. [ 67%]
.....................s..............s.....s.......................ss.... [ 67%]
.................s.......s.......s..s...s.........sss...s............... [ 68%]
.....................s.............s.......ss.ss.................s...... [ 68%]
s...sssssssssssssssss.....sss.ss.....s..s.x................s..ss........ [ 68%]
.........sssssxxs..sssss.s.s...........s.......ss.ss.............s.....s [ 68%]
..ssssssssssssssssss....ssss.s..s...s..s.xsss..............ss.ss........ [ 68%]
.........ssss..s..sssss.s.s..............s.............................. [ 69%]
......s....................................s............................ [ 69%]
............s..............s...............s.........................ss. [ 69%]
............s......................................s.................... [ 69%]
....................s..............s...............s......s.ss.ss....... [ 69%]
..s....s..ssssssssssssssssss....ssss.ss.s...s..s.xss.........sss..ss.ss. [ 70%]
...............ssss...s..sssss.s.s...........s......s........s.......... [ 70%]
......ss....................s.....s.s......s..ss.........sss....s....... [ 70%]
...........................s..............s.....s....................... [ 70%]
ss.....................s.......s.......s..s...s.........sss...s......... [ 71%]
...........................s.............s.......ss.ss.................s [ 71%]
......s...sssssssssssssssss.....sss.ss.....s..s.x................s..ss.. [ 71%]
...............sssssxxs..sssss.s.s...........s.......ss.ss.............s [ 71%]
.....s..ssssssssssssssssss....ssss.s..s...s..s.xsss..............ss.ss.. [ 71%]
...............ssss..s..sssss.s.s..............s........................ [ 72%]
............s....................................s...................... [ 72%]
..................s..............s...............s...................... [ 72%]
...ss.............s......................................s.............. [ 72%]
..........................s..............s...............s......s.ss.ss. [ 72%]
........s....s..ssssssssssssssssss....ssss.ss.s...s..s.xss.........sss.. [ 73%]
ss.ss................ssss...s..sssss.s.s...........s......s........s.... [ 73%]
............ss....................s.....s.s......s..ss.........sss....s. [ 73%]
.................................s..............s.....s................. [ 73%]
......ss.....................s.......s.......s..s...s.........sss...s... [ 73%]
.................................s.............s.                        [ 74%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/tests/test_construct.py . [ 74%]
..........................                                               [ 74%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/tests/test_csc.py . [ 74%]
..........                                                               [ 74%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/tests/test_csr.py . [ 74%]
.......                                                                  [ 74%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/tests/test_extract.py . [ 74%]
.                                                                        [ 74%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/tests/test_matrix_io.py . [ 74%]
.....                                                                    [ 74%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/tests/test_sparsetools.py . [ 74%]
..ss..                                                                   [ 74%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/tests/test_spfuncs.py . [ 74%]
..                                                                       [ 74%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/tests/test_sputils.py . [ 74%]
............                                                             [ 74%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/spatial/tests/test__plotutils.py s [ 74%]
ss                                                                       [ 74%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/spatial/tests/test__procrustes.py . [ 74%]
.....                                                                    [ 74%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/spatial/tests/test_distance.py . [ 74%]
........................................................................ [ 74%]
........................................................................ [ 74%]
.................                                                        [ 74%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/spatial/tests/test_hausdorff.py . [ 74%]
............                                                             [ 74%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/spatial/tests/test_kdtree.py . [ 74%]
........................................................................ [ 75%]
........................................................................ [ 75%]
........................................................................ [ 75%]
...............                                                          [ 75%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/spatial/tests/test_qhull.py . [ 75%]
........................................................................ [ 75%]
........................................................................ [ 75%]
.......................                                                  [ 75%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/spatial/tests/test_slerp.py . [ 75%]
........................................................................ [ 76%]
..........                                                               [ 76%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/spatial/tests/test_spherical_voronoi.py . [ 76%]
........................................................................ [ 76%]
...............................................                          [ 76%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/spatial/transform/tests/test_rotation.py . [ 76%]
........................................................................ [ 76%]
...................                                                      [ 76%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/spatial/transform/tests/test_rotation_groups.py . [ 76%]
........................................................................ [ 77%]
........................................................................ [ 77%]
........................................................................ [ 77%]
...............                                                          [ 77%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/spatial/transform/tests/test_rotation_spline.py . [ 77%]
......                                                                   [ 77%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_basic.py . [ 77%]
...................................................x...X................ [ 77%]
........................................................................ [ 77%]
........................................................................ [ 78%]
........................................................................ [ 78%]
........................................................................ [ 78%]
....................................................................     [ 78%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_bdtr.py . [ 78%]
.......................                                                  [ 78%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_boxcox.py . [ 78%]
.......                                                                  [ 78%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_cdflib.py . [ 78%]
.                                                                        [ 78%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_cosine_distr.py . [ 78%]
..............................                                           [ 78%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_cython_special.py . [ 78%]
...................................................xxxxx..xx..xx........ [ 79%]
........................................................................ [ 79%]
............................xxxx...........xxxx......................... [ 79%]
...........                                                              [ 79%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_data.py . [ 79%]
........................................................................ [ 79%]
..................................................x.x................... [ 79%]
............................x..x...x.......................              [ 80%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_digamma.py . [ 80%]
..                                                                       [ 80%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_ellip_harm.py . [ 80%]
....                                                                     [ 80%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_erfinv.py . [ 80%]
............                                                             [ 80%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_exponential_integrals.py . [ 80%]
.......                                                                  [ 80%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_faddeeva.py . [ 80%]
................                                                         [ 80%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_gamma.py . [ 80%]
.                                                                        [ 80%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_gammainc.py . [ 80%]
............................                                             [ 80%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_hypergeometric.py . [ 80%]
.....................................................                    [ 80%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_kolmogorov.py . [ 80%]
....................................                                     [ 80%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_lambertw.py . [ 80%]
..                                                                       [ 80%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_log_softmax.py . [ 80%]
.........                                                                [ 80%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_loggamma.py . [ 80%]
.....                                                                    [ 80%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_logit.py . [ 80%]
.....                                                                    [ 80%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_logsumexp.py . [ 80%]
.........                                                                [ 80%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_mpmath.py s [ 80%]
ssssssssssssssssss                                                       [ 80%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_nan_inputs.py . [ 80%]
........................................................................ [ 80%]
........................................................................ [ 81%]
........................................................................ [ 81%]
.........                                                                [ 81%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_ndtr.py . [ 81%]
...                                                                      [ 81%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_ndtri_exp.py . [ 81%]
...........                                                              [ 81%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_orthogonal.py . [ 81%]
..........................                                               [ 81%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_orthogonal_eval.py . [ 81%]
........................................................................ [ 81%]
.....................                                                    [ 81%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_owens_t.py . [ 81%]
...                                                                      [ 81%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_pcf.py . [ 81%]
.                                                                        [ 81%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_pdtr.py . [ 81%]
.........                                                                [ 81%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_precompute_expn_asy.py s [ 81%]
                                                                         [ 81%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_precompute_gammainc.py s [ 81%]
sss                                                                      [ 81%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_round.py . [ 81%]
.                                                                        [ 81%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_sf_error.py . [ 81%]
......                                                                   [ 81%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_sici.py . [ 81%]
.                                                                        [ 81%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_spence.py . [ 81%]
.                                                                        [ 81%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_spfun_stats.py . [ 81%]
...                                                                      [ 81%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_sph_harm.py . [ 81%]
                                                                         [ 81%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_spherical_bessel.py . [ 81%]
....................................                                     [ 82%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_trig.py . [ 82%]
...                                                                      [ 82%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_wright_bessel.py . [ 82%]
........................................................................ [ 82%]
........................................................................ [ 82%]
........................................................................ [ 82%]
........................................................................ [ 82%]
.................xxxxxxxxxxxxxxx...............                          [ 83%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_wrightomega.py . [ 83%]
.........                                                                [ 83%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/special/tests/test_zeta.py . [ 83%]
....                                                                     [ 83%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_binned_statistic.py . [ 83%]
........................................                                 [ 83%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_bootstrap.py . [ 83%]
.......................x..x..x.....................................      [ 83%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_contingency.py . [ 83%]
..........                                                               [ 83%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_continuous_basic.py . [ 83%]
........................................................................ [ 83%]
.......s....xx.......................................................... [ 83%]
.............................s.........................................s [ 84%]
s................................................................s...... [ 84%]
........................................................................ [ 84%]
........................................................................ [ 84%]
........................................................................ [ 84%]
........................................................................ [ 85%]
........................................................................ [ 85%]
........................................................................ [ 85%]
........................................................................ [ 85%]
........................................................................ [ 85%]
........................................................................ [ 86%]
........................................................................ [ 86%]
........................................................................ [ 86%]
........................................................................ [ 86%]
................                                                         [ 86%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_crosstab.py . [ 86%]
...........                                                              [ 86%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_discrete_basic.py . [ 86%]
........................................................................ [ 87%]
........................................................................ [ 87%]
........................................................................ [ 87%]
........................................................................ [ 87%]
...............                                                          [ 87%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_discrete_distns.py . [ 87%]
................................................                         [ 87%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_distributions.py . [ 87%]
........................................................................ [ 88%]
........................................................................ [ 88%]
........................................................................ [ 88%]
........................................................................ [ 88%]
................................s....................................... [ 88%]
.....................s......................s........................... [ 89%]
........................................................................ [ 89%]
........................................................................ [ 89%]
.................................................s.....s................ [ 89%]
........................................................................ [ 89%]
........................................................................ [ 90%]
........................................................................ [ 90%]
........................................s...............s............... [ 90%]
.                                                                        [ 90%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_entropy.py . [ 90%]
...................................                                      [ 90%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_fit.py . [ 90%]
.                                                                        [ 90%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_hypotests.py . [ 90%]
........................................................................ [ 90%]
........................................................................ [ 91%]
.......                                                                  [ 91%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_kdeoth.py . [ 91%]
.........ss......ss....ssssssssssssssss..ss......ss......ss......ss....s [ 91%]
sssssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss..... [ 91%]
.ss......ss......ss....ssssssssssssssss..ss......ss......ss......ss....s [ 91%]
sssssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss..... [ 91%]
.ss......ss......ss....ssssssssssssssss..ss......ss......ss......ss....s [ 92%]
sssssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss..... [ 92%]
.ss......ss......ss....ssssssssssssssss..ss......ss......ss......ss....s [ 92%]
sssssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss..... [ 92%]
.ss....sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 92%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 93%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 93%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 93%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 93%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 93%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 94%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 94%]
sssssss..ss......ss....ssssssssssssssss..ss......ss......ss......ss....s [ 94%]
sssssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss..... [ 94%]
.ss......ss......ss....ssssssssssssssss..ss......ss......ss......ss....s [ 95%]
sssssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss..... [ 95%]
.ss......ss......ss....ssssssssssssssss..ss......ss......ss......ss....s [ 95%]
sssssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss..... [ 95%]
.ss......ss......ss....ssssssssssssssss..ss......ss......ss......ss....s [ 95%]
sssssssssssssss..ss......ss......ss......ss....ssssssssssssssss..ss..... [ 96%]
.ss......s...                                                            [ 96%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_morestats.py . [ 96%]
........................................................................ [ 96%]
......................................................xxx...s........... [ 96%]
...............s........................................s............... [ 96%]
.................................................................        [ 96%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_mstats_basic.py . [ 96%]
.....s..s............................................................... [ 97%]
..........................................                               [ 97%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_mstats_extras.py . [ 97%]
........                                                                 [ 97%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_multivariate.py . [ 97%]
........................................................................ [ 97%]
........................................................................ [ 97%]
....                                                                     [ 97%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_qmc.py . [ 97%]
.............................s.s.s.s.s.ssss............................s [ 97%]
.s.s.s.s.s.sss................                                           [ 97%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_rank.py . [ 97%]
......................                                                   [ 98%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_relative_risk.py . [ 98%]
..............                                                           [ 98%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_stats.py . [ 98%]
........................................................................ [ 98%]
........................................................................ [ 98%]
........................................................................ [ 98%]
........................................................................ [ 98%]
........................................................................ [ 99%]
........................................................................ [ 99%]
....................................................x................... [ 99%]
...x.....xx......................ss.....s..........xx..x............sx.. [ 99%]
........................................................................ [ 99%]
...............                                                          [ 99%]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_tukeylambda_stats.py . [ 99%]
..                                                                       [100%]

=================================== FAILURES ===================================
______________________ TestLinprogIPSparse.test_bug_6139 _______________________
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py:1869: in test_bug_6139
    super().test_bug_6139()
        __class__  = <class 'scipy.optimize.tests.test_linprog.TestLinprogIPSparse'>
        self       = <scipy.optimize.tests.test_linprog.TestLinprogIPSparse object at 0x2a3fb3760>
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py:1254: in test_bug_6139
    _assert_success(res, desired_fun=14.95,
        A_eq       = array([[    1.,     0.,     0.],
       [-1000.,     0., -1000.]])
        A_ub       = array([[      -0., -1000000., -1010000.]])
        b_eq       = array([ 5.e+00, -1.e+04])
        b_ub       = array([-10000000.])
        bounds     = (None, None)
        c          = array([1, 1, 1])
        res        =      con: array([ 0.        , -0.00011065])
     fun: 14.949999999036962
 message: 'The solution does not satisfy the ...nit: 5
   slack: array([-0.00206951])
  status: 4
 success: False
       x: array([5.        , 4.95000011, 4.99999989])
        self       = <scipy.optimize.tests.test_linprog.TestLinprogIPSparse object at 0x2a3fb3760>
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py:67: in _assert_success
    raise AssertionError(msg)
E   AssertionError: linprog status 4, message: The solution does not satisfy the constraints within the required tolerance of 3.16E-04, yet no errors were raised and there is no certificate of infeasibility or unboundedness. Check whether the slack and constraint residuals are acceptable; if not, consider enabling presolve, adjusting the tolerance option(s), and/or using a different method. Please consider submitting a bug report.
        atol       = 1e-08
        desired_fun = 14.95
        desired_x  = array([5.  , 4.95, 5.  ])
        msg        = 'linprog status 4, message: The solution does not satisfy the constraints within the required tolerance of 3.16E-04, y...presolve, adjusting the tolerance option(s), and/or using a different method. Please consider submitting a bug report.'
        res        =      con: array([ 0.        , -0.00011065])
     fun: 14.949999999036962
 message: 'The solution does not satisfy the ...nit: 5
   slack: array([-0.00206951])
  status: 4
 success: False
       x: array([5.        , 4.95000011, 4.99999989])
        rtol       = 1e-08
__________________ TestLinprogIPSparsePresolve.test_bug_6139 ___________________
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py:1919: in test_bug_6139
    super().test_bug_6139()
        __class__  = <class 'scipy.optimize.tests.test_linprog.TestLinprogIPSparsePresolve'>
        self       = <scipy.optimize.tests.test_linprog.TestLinprogIPSparsePresolve object at 0x2a4111bb0>
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py:1254: in test_bug_6139
    _assert_success(res, desired_fun=14.95,
        A_eq       = array([[    1.,     0.,     0.],
       [-1000.,     0., -1000.]])
        A_ub       = array([[      -0., -1000000., -1010000.]])
        b_eq       = array([ 5.e+00, -1.e+04])
        b_ub       = array([-10000000.])
        bounds     = (None, None)
        c          = array([1, 1, 1])
        res        =      con: array([ 0.        , -0.00011065])
     fun: 14.949999999036962
 message: 'The solution does not satisfy the ...nit: 5
   slack: array([-0.00206951])
  status: 4
 success: False
       x: array([5.        , 4.95000011, 4.99999989])
        self       = <scipy.optimize.tests.test_linprog.TestLinprogIPSparsePresolve object at 0x2a4111bb0>
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py:67: in _assert_success
    raise AssertionError(msg)
E   AssertionError: linprog status 4, message: The solution does not satisfy the constraints within the required tolerance of 3.16E-04, yet no errors were raised and there is no certificate of infeasibility or unboundedness. Check whether the slack and constraint residuals are acceptable; if not, consider enabling presolve, adjusting the tolerance option(s), and/or using a different method. Please consider submitting a bug report.
        atol       = 1e-08
        desired_fun = 14.95
        desired_x  = array([5.  , 4.95, 5.  ])
        msg        = 'linprog status 4, message: The solution does not satisfy the constraints within the required tolerance of 3.16E-04, y...presolve, adjusting the tolerance option(s), and/or using a different method. Please consider submitting a bug report.'
        res        =      con: array([ 0.        , -0.00011065])
     fun: 14.949999999036962
 message: 'The solution does not satisfy the ...nit: 5
   slack: array([-0.00206951])
  status: 4
 success: False
       x: array([5.        , 4.95000011, 4.99999989])
        rtol       = 1e-08
________________________ test_maxiter_worsening[gmres] _________________________
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_iterative.py:486: in test_maxiter_worsening
    assert_(error <= tol*best_error)
E   AssertionError
        A          = array([[-0.11127953+0.j        ,  0.        +0.j        ,
         0.        +0.j        ,  0.16127953+0.j        ],
 ...,
       [ 0.11127953+0.j        ,  0.        +0.j        ,
         0.        +0.j        , -0.16127953+0.j        ]])
        best_error = 0.01622706276063635
        error      = 0.08845091625842058
        info       = 5
        maxiter    = 5
        solver     = <function gmres at 0x12ecb3a60>
        tol        = 5
        v          = array([1., 1., 1., 1.])
        x          = array([-1.18262948e+15+1.81939327e+11j, -3.76592219e-03-1.59022831e-01j,
       -3.05910974e-03+1.58937041e-01j, -8.15989803e+14+1.25534361e+11j])
=============================== warnings summary ===============================
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test__linprog_clean_inputs.py: 2 warnings
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py: 10 warnings
  /Users/piotrsobolewski/Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/numpy/core/numeric.py:2440: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
    a1, a2 = asarray(a1), asarray(a2)

Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_minimize_constrained.py::TestBoundedNelderMead::test_outside_bounds_warning
  /Users/piotrsobolewski/Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_minimize_constrained.py:742: OptimizeWarning: Initial guess is not within the specified bounds
    minimize(prob.fun, [-10, 8],

Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_ltisys.py::TestPlacePoles::test_complex
  /Users/piotrsobolewski/Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/numpy/linalg/linalg.py:2158: RuntimeWarning: divide by zero encountered in det
    r = _umath_linalg.det(a, signature=signature)

Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/signal/tests/test_ltisys.py::TestPlacePoles::test_complex
  /Users/piotrsobolewski/Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/numpy/linalg/linalg.py:2158: RuntimeWarning: invalid value encountered in det
    r = _umath_linalg.det(a, signature=signature)

Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/spatial/tests/test_distance.py: 14 warnings
  /Users/piotrsobolewski/Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/spatial/distance.py:207: DeprecationWarning: 'wminkowski' metric is deprecated and will be removed in SciPy 1.8.0, use 'minkowski' instead.
    kwargs = _validate_kwargs((XA, XB), mA + mB, n, **kwargs)

Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/spatial/tests/test_distance.py: 14 warnings
  /Users/piotrsobolewski/Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/spatial/distance.py:275: DeprecationWarning: 'wminkowski' metric is deprecated and will be removed in SciPy 1.8.0, use 'minkowski' instead.
    kwargs = _validate_kwargs(X, m, n, **kwargs)

Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_continuous_basic.py: 14 warnings
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_distributions.py: 4 warnings
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_stats.py: 2 warnings
  /Users/piotrsobolewski/Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/_continuous_distns.py:624: RuntimeWarning: overflow encountered in _beta_ppf
    return _boost._beta_ppf(q, a, b)

Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_continuous_basic.py::test_cont_basic[500-200-beta-arg4]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_continuous_basic.py::test_cont_basic[500-200-beta-arg4]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_continuous_basic.py::test_methods_with_lists[beta-args4-isf]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_distributions.py::TestBeta::test_issue_12794
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_stats.py::TestNumericalInverseHermite::test_inaccurate_CDF
  /Users/piotrsobolewski/Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/_continuous_distns.py:621: RuntimeWarning: overflow encountered in _beta_isf
    return _boost._beta_isf(x, a, b)

Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_discrete_basic.py::test_discrete_basic[nbinom-arg13-False]
Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_discrete_basic.py::test_moments[nbinom-arg13]
  /Users/piotrsobolewski/Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/_discrete_distns.py:339: RuntimeWarning: overflow encountered in _nbinom_ppf
    return _boost._nbinom_ppf(q, n, p)

Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_discrete_basic.py::test_discrete_basic[nbinom-arg13-False]
  /Users/piotrsobolewski/Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/_discrete_distns.py:336: RuntimeWarning: overflow encountered in _nbinom_isf
    return _boost._nbinom_isf(x, n, p)

Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/stats/tests/test_discrete_distns.py::TestNCH::test_nchypergeom_wallenius_naive
  /Users/piotrsobolewski/Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/numpy/lib/function_base.py:2246: RuntimeWarning: invalid value encountered in mean (vectorized)
    outputs = ufunc(*inputs)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py::TestLinprogIPSparse::test_bug_6139
FAILED Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/optimize/tests/test_linprog.py::TestLinprogIPSparsePresolve::test_bug_6139
FAILED Dev/miniforge3/envs/napari-env2/lib/python3.9/site-packages/scipy/sparse/linalg/isolve/tests/test_iterative.py::test_maxiter_worsening[gmres]
= 3 failed, 32071 passed, 2581 skipped, 11134 deselected, 105 xfailed, 9 xpassed, 72 warnings in 272.55s (0:04:32) =

An update: on macOS 11 we have a kernel panic that we cannot avoid, so we won't release wheels for that OS version. We will likely release macOS 12 wheels soon though. For details, see this mailing list thread. As pointed out in that thread, there is one significant issue (performance related) left. There are some test failures as well, but those are minor and not blocking (can be skipped/xfailed for now).

Hi @rgommers, is there a publicly available timeline for the release of macOS 12?

I'd like to see it finalized by next week. Just upgraded to macOS 12 on my own machine so I can work on making the last few updates. @tylerjereddy as release manager has the final say on exact timing.

I see, thanks for this information, Ralf. As a macOS 12 user, I desperately wait for the Python packages for data science to be (officially) released for Apple Silicon to get the best out of the chip @rgommers

@rgommers I'd probably opt for as soon as possible to get it out before US Thanksgiving holiday; my notes currently have this as one of the key requirements:

OPENBLAS_THREAD_TIMEOUT env variable to "1" in _distributor_init.py but only for the macos/arm64 wheel

Great to hear that, Tyler. All the best. πŸ‘ @tylerjereddy

Great, thanks @tylerjereddy. I'll work on that fix tomorrow. There are also some remaining test failures, some due to gh-14901, and some random ones. I'll try to address all those.

Workaround building from source:

/opt/homebrew/bin/brew install openblas
export OPENBLAS=$(/opt/homebrew/bin/brew --prefix openblas)
export CFLAGS="-falign-functions=8 ${CFLAGS}"
git clone https://github.com/scipy/scipy.git
cd scipy
/opt/homebrew/bin/pip install .

Using python 3.9.9 worked for me. I wanted to use python 3.8 though, and in this case, installing with conda (use brew install miniforge) worked [macOS (M1) Big Sur].

Oh forgot to close this. SciPy 1.7.3 has wheels for arm64, so this is all done.

Anyone here is using m1 and able to install scipy but when using import statement in the code, it yields error " ModuleNotFoundError: No module named 'scipy' "? Thank you. Please help to import in the code.

@DavidY0903 that is unrelated to this issue, please open a new one instead. Note that you do need to give many more details about the exact steps you took, how you installed Python, SciPy itself, etc. - this is highly likely to be a simple user error.

commented

Got it to work on Mac m1. Must use native terminal (not rosetta).

brew install openblas
export OPENBLAS=$(/opt/homebrew/bin/brew --prefix openblas)
export CFLAGS="-falign-functions=8 ${CFLAGS}"
pip3 install scipy

Full details:

➜  ~ brew install openblas
==> Downloading https://ghcr.io/v2/homebrew/core/openblas/manifests/0.3.19
Already downloaded: /Users/x/Library/Caches/Homebrew/downloads/b47e3d834a9c52d0772b21372a675e3496a8480baa2f3e9b72d60def08682c3f--openblas-0.3.19.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/openblas/blobs/sha256:33e6385102e69ddd716d8eb818861e2e2e2c08de20e06d189ffd69115131ed03
Already downloaded: /Users/x/Library/Caches/Homebrew/downloads/82003eb6c8dd0091f8465e8203b39d67e81d7db4c9e4d790e71f6b2e8445ab3f--openblas--0.3.19.arm64_big_sur.bottle.tar.gz
==> Pouring openblas--0.3.19.arm64_big_sur.bottle.tar.gz
==> Caveats
openblas is keg-only, which means it was not symlinked into /opt/homebrew,
because macOS provides BLAS in Accelerate.framework.

For compilers to find openblas you may need to set:
  export LDFLAGS="-L/opt/homebrew/opt/openblas/lib"
  export CPPFLAGS="-I/opt/homebrew/opt/openblas/include"

==> Summary
🍺  /opt/homebrew/Cellar/openblas/0.3.19: 23 files, 51.9MB
==> Running `brew cleanup openblas`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
➜  ~ export OPENBLAS=$(/opt/homebrew/bin/brew --prefix openblas)
➜  ~ export CFLAGS="-falign-functions=8 ${CFLAGS}"
➜  ~ pip3 install scipy
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting scipy
  Using cached scipy-1.7.3.tar.gz (36.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy<1.23.0,>=1.16.5 in /opt/homebrew/lib/python3.9/site-packages (from scipy) (1.22.1)
Building wheels for collected packages: scipy
  Building wheel for scipy (pyproject.toml) ... done
  Created wheel for scipy: filename=scipy-1.7.3-cp39-cp39-macosx_11_0_arm64.whl size=19262572 sha256=99eedcf14a75cf7b0939a532b61e14053cf3d01281b9729285d3bb45b77417d5
  Stored in directory: /Users/x/Library/Caches/pip/wheels/db/b0/52/cd8694e58492f87ea39e66b94e989640ad743667557a523ac1
Successfully built scipy
Installing collected packages: scipy
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Successfully installed scipy-1.7.3```

Anyone here is using m1 and able to install scipy but when using import statement in the code, it yields error " ModuleNotFoundError: No module named 'scipy' "? Thank you. Please help to import in the code.

Did you solve the problem? I am also having this issue when I am trying to import Scipy

@zhouaad Are you sure thay you are installed scipy to the same environment you are running? Python installed by brew is different than the one shipped by default by Apple

After installing pip install -U scipy are you able start ipython in the same terminal and check if import scipy work in interactive comandline?

@zhouaad Are you sure thay you are installed scipy to the same environment you are running? Python installed by brew is different than the one shipped by default by Apple

After installing pip install -U scipy are you able start ipython in the same terminal and check if import scipy work in interactive comandline?

I guess that's what I'm trying to figure out. When I pip3 list, scipy does show up, but when I import scipy in idle, it says ModuleNotFoundError: No module named 'scipy'

try

which -a python
$(which -a python) -m pip install scipy

try

which -a python
$(which -a python) -m pip install scipy

which -a python outputs
/opt/anaconda3/bin/python /Library/Frameworks/Python.framework/Versions/2.7/bin/python /usr/local/bin/python /usr/bin/python
(which -a python) -m pip install scipy throws an error -bash: syntax error near unexpected token -m' The Python version I have on my laptop is 3.10

Woof. My advice would be to get up and running with something to manage python environments. If you're on M1, then I'd suggest the miniforge install of conda:
https://github.com/conda-forge/miniforge

Just remember to activate you envs before you install stuff!
And if you screw up your env, just delete it and start over.

Also, python 3.10 in my experience isn't hugely supported, so I'd stick to 3.9 for the time beingβ€”which again, conda or another env manager makes easy.

which -a python outputs /opt/anaconda3/bin/python /Library/Frameworks/Python.framework/Versions/2.7/bin/python /usr/local/bin/python /usr/bin/python (which -a python) -m pip install scipy throws an error -bash: syntax error near unexpected token -m' The Python version I have on my laptop is 3.10

Did you copy $ in $(which -a python) -m pip install scipy?
Try to start idle in the same console, if you run idle from spotlight it might use the python that was shipped with your sytem (3.8 or 3.9)

Check if you could import scipy in idle started using both commands

/opt/anaconda3/bin/python -m  idlelib.idle
python -m idlelib.idle

pip install cython pybind11 pythran numpy
OPENBLAS=$(brew --prefix openblas) CFLAGS="-falign-functions=8 ${CFLAGS}" pip install --no-use-pep517 scipy==1.7.0

I was having issues with Wheels so I had to pip install wheel before I ran the code above but I got that to work!

There are a few partial solutions above, but it in putting all of them together that I finally got this to work on Python 3.9.13, macOS 12.3 Monterey

# Install BLAS and LAPACK
brew info openblas lapack

# FLAGS
export LDFLAGS="-L/opt/homebrew/opt/lapack/lib"
export CPPFLAGS="-I/opt/homebrew/opt/lapack/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/lapack/lib/pkgconfig"
export NPY_DISTUTILS_APPEND_FLAGS=1
export SYSTEM_VERSION_COMPAT=1
export CFLAGS="-falign-functions=8"

# Libraries
export LAPACK=/opt/homebrew/opt/lapack/lib/liblapack.dylib
export BLAS=/opt/homebrew/opt/openblas/lib/libopenblas.dylib

# Install on system or in venv
pip install cython pybind11 pythran
pip install numpy
pip install --no-use-pep517 scipy

For reference:

~ % python
Python 3.9.13 (main, May 24 2022, 21:13:51)
[Clang 13.1.6 (clang-1316.0.21.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> scipy.version.full_version
'1.8.1'

~ % file $(which python)
/opt/homebrew/opt/python@3.9/libexec/bin/python: Mach-O 64-bit executable arm64

This continues to get traction for some reason, so let me just say that none of these workarounds or using env vars are needed anymore. The contributor docs are up to date: http://scipy.github.io/devdocs/dev/dev_quickstart.html, and it's literally 2-3 commands to build/install on macOS M1, and there are no known issues.

@rgommers I followed the document you linked and it was not enough to get my environment working. @nicolasgrasset's post finally resolved my issues and I was able to get it building on my machine.

@aiell0 can you please open a new issue with what you are seeing when following that link, and Cc me? All known problems are fixed, so if you see a new problem it needs fixing. Maybe something is still screwed up specifically in Homebrew or some such thing.

Got scipy to install using a variant of @nicolasgrasset solution. Unfortunately, @rgommers your document didn't solve my issue. However, exporting these paths did. OSX 11.1. Python 3.9.5. M1 native. Scipy 1.9.0.

Install openblas

brew install openblas

Install additional dependencies

pip install cython pybind11 pythran
pip install numpy

Get paths that are required to be set in environment

brew info openblas

openblas: stable 0.3.20 (bottled), HEAD [keg-only]
...
For compilers to find openblas you may need to set:
  export LDFLAGS="-L/opt/homebrew/opt/openblas/lib"
  export CPPFLAGS="-I/opt/homebrew/opt/openblas/include"

For pkg-config to find openblas you may need to set:
  export PKG_CONFIG_PATH="/opt/homebrew/opt/openblas/lib/pkgconfig"

Execute the above three export statements in your terminal

pip install scipy
Successfully built scipy
Installing collected packages: scipy
Successfully installed scipy-1.9.0

Original error

pip install scipy                
Collecting scipy
  Using cached scipy-1.9.0.tar.gz (42.0 MB)
  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
  ╰─> [61 lines of output]
      ld: warning: directory not found for option '-L/opt/homebrew/opt/lapack/lib'
      The Meson build system
      Version: 0.62.2
      Source dir: /private/var/folders/bq/mzk4g8qs4jz3vcr1s9zq2s0h0000gn/T/pip-install-jcsyla8a/scipy_da7be2f1bf954b5bb4883a1e3bdbdd19
      Build dir: /private/var/folders/bq/mzk4g8qs4jz3vcr1s9zq2s0h0000gn/T/pip-install-jcsyla8a/scipy_da7be2f1bf954b5bb4883a1e3bdbdd19/.mesonpy-5tm2xxfa/build
      Build type: native build
      Project name: SciPy
      Project version: 1.9.0
      C compiler for the host machine: cc (clang 12.0.5 "Apple clang version 12.0.5 (clang-1205.0.22.9)")
      C linker for the host machine: cc ld64 650.9
      C++ compiler for the host machine: c++ (clang 12.0.5 "Apple clang version 12.0.5 (clang-1205.0.22.9)")
      C++ linker for the host machine: c++ ld64 650.9
      Host machine cpu family: aarch64
      Host machine cpu: arm64
      Compiler for C supports arguments -Wno-unused-but-set-variable: NO
      Library m found: YES
      Fortran compiler for the host machine: gfortran (gcc 11.3.0 "GNU Fortran (Homebrew GCC 11.3.0_2) 11.3.0")
      Fortran linker for the host machine: gfortran ld64 650.9
      Program cython found: YES (/private/var/folders/bq/mzk4g8qs4jz3vcr1s9zq2s0h0000gn/T/pip-build-env-io98cose/overlay/bin/cython)
      Program pythran found: YES (/private/var/folders/bq/mzk4g8qs4jz3vcr1s9zq2s0h0000gn/T/pip-build-env-io98cose/overlay/bin/pythran)
      Program cp found: YES (/bin/cp)
      Program python3 found: YES (/Users/dancaron/Dropbox/git/nextgenerative/mini/bin/python)
      Found pkg-config: /opt/homebrew/bin/pkg-config (0.29.2)
      Library npymath found: YES
      Library npyrandom found: YES
      Did not find CMake 'cmake'
      Found CMake: NO
      Run-time dependency openblas found: NO (tried pkgconfig and framework)
      
      ../../scipy/meson.build:120:0: ERROR: Dependency "openblas" not found, tried pkgconfig and framework
   ...
  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.