<p dir="auto">I am using Anaconda Python distribution. I have noticed, that among 1000 randomly generated unitary matrices (that I get from QR decomposition), there always is one "bad" matrix. It is bad in the sense of results of DGETRF -- it returns the same pivot twice.</p>
<p dir="auto">Here is simple example of what is happening (pivot 247 is duplicated):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: import numpy as np

In [2]: np.random.seed(100)

In [3]: a = [np.linalg.qr(np.random.randn(1800, 60))[0].copy(order='F') for i in range(141)]

In [4]: from scipy.linalg.lapack import dgetrf

In [5]: dgetrf(a[140])[2]
Out[5]: 0

In [6]: dgetrf(a[140])[1]
Out[6]: 
array([ 624, 1296,  240,  285,  538,  762,  748, 1318,  247,  793,  470,
       1604,  247, 1461, 1694,  975,  781,   80,  805, 1160,  580,   79,
        226,   65,  225,  771, 1403,  242,  515, 1450,  213,  822,  552,
        842,  326, 1223,  248,  702,  350, 1625,  873,  620,  349,  660,
       1663,  406,  547,  749, 1230, 1585,  488, 1298, 1475,  408,  993,
        578, 1068, 1108, 1405,  248], dtype=int32)"><pre class="notranslate"><code class="notranslate">In [1]: import numpy as np

In [2]: np.random.seed(100)

In [3]: a = [np.linalg.qr(np.random.randn(1800, 60))[0].copy(order='F') for i in range(141)]

In [4]: from scipy.linalg.lapack import dgetrf

In [5]: dgetrf(a[140])[2]
Out[5]: 0

In [6]: dgetrf(a[140])[1]
Out[6]: 
array([ 624, 1296,  240,  285,  538,  762,  748, 1318,  247,  793,  470,
       1604,  247, 1461, 1694,  975,  781,   80,  805, 1160,  580,   79,
        226,   65,  225,  771, 1403,  242,  515, 1450,  213,  822,  552,
        842,  326, 1223,  248,  702,  350, 1625,  873,  620,  349,  660,
       1663,  406,  547,  749, 1230, 1585,  488, 1298, 1475,  408,  993,
        578, 1068, 1108, 1405,  248], dtype=int32)
</code></pre></div>
<p dir="auto">I also attach matrix in npz format, which is "bad" for scipy.linalg.lapack.dgetrf (pivot 810 is duplicated)<br>
<a href="https://github.com/scipy/scipy/files/329667/matrix.zip">matrix.zip</a></p>
<p dir="auto">However, if I use scipy.linalg.lu, then no pivot is duplicated, although resulting pivots are, practically, the same, as from scipy.linalg.lapack.dgetrf</p>
<h3 dir="auto">Describe your issue.</h3>
<p dir="auto">Hi, I just got the MBA M1 and I am trying to install SciPy, but for some reason I am getting errors which I don't quite understand. Would appreciate any advice on how to move forward. I am running Monterey 12.0.1. I have been able to install most libraries, just scipy has been giving me problems. The whole error message is too long to post, but I can reply with relevant information, just get back to me on this thread.</p>
<h3 dir="auto">Reproducing Code Example</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="~ % brew --version
Homebrew 3.3.3
Homebrew/homebrew-core (git revision 4530cc439e5; last commit 2021-11-12)
Homebrew/homebrew-cask (git revision e60e8f7a05; last commit 2021-11-13)
~ % pip install cython pybind11 pythran numpy
Requirement already satisfied: cython in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (0.29.24)
Requirement already satisfied: pybind11 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (2.8.1)
Requirement already satisfied: pythran in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (0.10.0)
Requirement already satisfied: numpy in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (1.21.4)
Requirement already satisfied: beniget~=0.4.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pythran) (0.4.1)
Requirement already satisfied: gast~=0.5.0 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pythran) (0.5.2)
Requirement already satisfied: ply&gt;=3.4 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from pythran) (3.11)
~ % OPENBLAS=$(brew --prefix openblas) CFLAGS=&quot;-falign-functions=8 ${CFLAGS}&quot; pip install --no-use-pep517 scipy==1.7.0"><pre class="notranslate"><span class="pl-c1">~</span> <span class="pl-c1">%</span> <span class="pl-s1">brew</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-s1">version</span>
<span class="pl-v">Homebrew</span> <span class="pl-c1">3.3</span><span class="pl-c1">.3</span>
<span class="pl-v">Homebrew</span><span class="pl-c1">/</span><span class="pl-s1">homebrew</span><span class="pl-c1">-</span><span class="pl-en">core</span> (<span class="pl-s1">git</span> <span class="pl-s1">revision</span> <span class="pl-c1">4530</span><span class="pl-s1">cc439e5</span>; <span class="pl-s1">last</span> <span class="pl-s1">commit</span> <span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">11</span><span class="pl-c1">-</span><span class="pl-c1">12</span>)
<span class="pl-v">Homebrew</span><span class="pl-c1">/</span><span class="pl-s1">homebrew</span><span class="pl-c1">-</span><span class="pl-en">cask</span> (<span class="pl-s1">git</span> <span class="pl-s1">revision</span> <span class="pl-s1">e60e8f7a05</span>; <span class="pl-s1">last</span> <span class="pl-s1">commit</span> <span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">11</span><span class="pl-c1">-</span><span class="pl-c1">13</span>)
<span class="pl-c1">~</span> <span class="pl-c1">%</span> <span class="pl-s1">pip</span> <span class="pl-s1">install</span> <span class="pl-s1">cython</span> <span class="pl-s1">pybind11</span> <span class="pl-s1">pythran</span> <span class="pl-s1">numpy</span>
<span class="pl-v">Requirement</span> <span class="pl-s1">already</span> <span class="pl-s1">satisfied</span>: <span class="pl-s1">cython</span> <span class="pl-c1">in</span> <span class="pl-c1">/</span><span class="pl-v">Library</span><span class="pl-c1">/</span><span class="pl-v">Frameworks</span><span class="pl-c1">/</span><span class="pl-v">Python</span>.<span class="pl-s1">framework</span><span class="pl-c1">/</span><span class="pl-v">Versions</span><span class="pl-c1">/</span><span class="pl-c1">3.9</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">9</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-en">packages</span> (<span class="pl-c1">0.29</span>.<span class="pl-c1">24</span>)
<span class="pl-v">Requirement</span> <span class="pl-s1">already</span> <span class="pl-s1">satisfied</span>: <span class="pl-s1">pybind11</span> <span class="pl-c1">in</span> <span class="pl-c1">/</span><span class="pl-v">Library</span><span class="pl-c1">/</span><span class="pl-v">Frameworks</span><span class="pl-c1">/</span><span class="pl-v">Python</span>.<span class="pl-s1">framework</span><span class="pl-c1">/</span><span class="pl-v">Versions</span><span class="pl-c1">/</span><span class="pl-c1">3.9</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">9</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-en">packages</span> (<span class="pl-c1">2.8</span>.<span class="pl-c1">1</span>)
<span class="pl-v">Requirement</span> <span class="pl-s1">already</span> <span class="pl-s1">satisfied</span>: <span class="pl-s1">pythran</span> <span class="pl-c1">in</span> <span class="pl-c1">/</span><span class="pl-v">Library</span><span class="pl-c1">/</span><span class="pl-v">Frameworks</span><span class="pl-c1">/</span><span class="pl-v">Python</span>.<span class="pl-s1">framework</span><span class="pl-c1">/</span><span class="pl-v">Versions</span><span class="pl-c1">/</span><span class="pl-c1">3.9</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">9</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-en">packages</span> (<span class="pl-c1">0.10</span>.<span class="pl-c1">0</span>)
<span class="pl-v">Requirement</span> <span class="pl-s1">already</span> <span class="pl-s1">satisfied</span>: <span class="pl-s1">numpy</span> <span class="pl-c1">in</span> <span class="pl-c1">/</span><span class="pl-v">Library</span><span class="pl-c1">/</span><span class="pl-v">Frameworks</span><span class="pl-c1">/</span><span class="pl-v">Python</span>.<span class="pl-s1">framework</span><span class="pl-c1">/</span><span class="pl-v">Versions</span><span class="pl-c1">/</span><span class="pl-c1">3.9</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">9</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-en">packages</span> (<span class="pl-c1">1.21</span>.<span class="pl-c1">4</span>)
<span class="pl-v">Requirement</span> <span class="pl-s1">already</span> <span class="pl-s1">satisfied</span>: <span class="pl-s1">beniget</span><span class="pl-c1">~</span><span class="pl-c1">=</span><span class="pl-c1">0.4</span>.<span class="pl-c1">0</span> <span class="pl-c1">in</span> <span class="pl-c1">/</span><span class="pl-v">Library</span><span class="pl-c1">/</span><span class="pl-v">Frameworks</span><span class="pl-c1">/</span><span class="pl-v">Python</span>.<span class="pl-s1">framework</span><span class="pl-c1">/</span><span class="pl-v">Versions</span><span class="pl-c1">/</span><span class="pl-c1">3.9</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">9</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-en">packages</span> (<span class="pl-s1">from</span> <span class="pl-s1">pythran</span>) (<span class="pl-c1">0.4</span>.<span class="pl-c1">1</span>)
<span class="pl-v">Requirement</span> <span class="pl-s1">already</span> <span class="pl-s1">satisfied</span>: <span class="pl-s1">gast</span><span class="pl-c1">~</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>.<span class="pl-c1">0</span> <span class="pl-c1">in</span> <span class="pl-c1">/</span><span class="pl-v">Library</span><span class="pl-c1">/</span><span class="pl-v">Frameworks</span><span class="pl-c1">/</span><span class="pl-v">Python</span>.<span class="pl-s1">framework</span><span class="pl-c1">/</span><span class="pl-v">Versions</span><span class="pl-c1">/</span><span class="pl-c1">3.9</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">9</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-en">packages</span> (<span class="pl-s1">from</span> <span class="pl-s1">pythran</span>) (<span class="pl-c1">0.5</span>.<span class="pl-c1">2</span>)
<span class="pl-v">Requirement</span> <span class="pl-s1">already</span> <span class="pl-s1">satisfied</span>: <span class="pl-s1">ply</span><span class="pl-c1">&gt;=</span><span class="pl-c1">3.4</span> <span class="pl-c1">in</span> <span class="pl-c1">/</span><span class="pl-v">Library</span><span class="pl-c1">/</span><span class="pl-v">Frameworks</span><span class="pl-c1">/</span><span class="pl-v">Python</span>.<span class="pl-s1">framework</span><span class="pl-c1">/</span><span class="pl-v">Versions</span><span class="pl-c1">/</span><span class="pl-c1">3.9</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python3</span>.<span class="pl-c1">9</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-en">packages</span> (<span class="pl-s1">from</span> <span class="pl-s1">pythran</span>) (<span class="pl-c1">3.11</span>)
<span class="pl-c1">~</span> <span class="pl-c1">%</span> <span class="pl-v">OPENBLAS</span><span class="pl-c1">=</span>$(<span class="pl-s1">brew</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-s1">prefix</span> <span class="pl-s1">openblas</span>) <span class="pl-v">CFLAGS</span><span class="pl-c1">=</span><span class="pl-s">"-falign-functions=8 ${CFLAGS}"</span> <span class="pl-s1">pip</span> <span class="pl-s1">install</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-s1">no</span><span class="pl-c1">-</span><span class="pl-s1">use</span><span class="pl-c1">-</span><span class="pl-s1">pep517</span> <span class="pl-s1">scipy</span><span class="pl-c1">==</span><span class="pl-c1">1.7</span>.<span class="pl-c1">0</span></pre></div>
<h3 dir="auto">Error message</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ollecting scipy==1.7.0
  Using cached scipy-1.7.0.tar.gz (36.1 MB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy&lt;1.23.0,&gt;=1.16.5 in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from scipy==1.7.0) (1.21.4)
Building wheels for collected packages: scipy
  Building wheel for scipy (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'/private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'/private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/setup.py'&quot;'&quot;';f = getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__) if os.path.exists(__file__) else io.StringIO('&quot;'&quot;'from setuptools import setup; setup()'&quot;'&quot;');code = f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' bdist_wheel -d /private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-wheel-uozvxwo6
       cwd: /private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/



 error: Command &quot;ar rcs build/temp.macosx-10.9-universal2-3.9/libsc_cephes.a build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/scipy_iv.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/shichi.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/sici.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/sindg.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/sinpi.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/spence.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/stdtr.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/struve.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/tandg.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/tukey.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/unity.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/yn.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/yv.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/zeta.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/zetac.o&quot; failed with exit status 1
    
    ########### CLIB COMPILER OPTIMIZATION ###########
    Platform      :
      Architecture: unsupported
      Compiler    : gcc
    
    CPU baseline  :
      Requested   : optimization disabled
      Enabled     : none
      Flags       : none
      Extra checks: none
      Requested   : optimization disabled
    
    CPU dispatch  :
      Enabled     : none
      Generated   : none
    CCompilerOpt.cache_flush[809] : write cache to path -&gt; /private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/build/temp.macosx-10.9-universal2-3.9/ccompiler_opt_cache_clib.py
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'/private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/setup.py'&quot;'&quot;'; __file__='&quot;'&quot;'/private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/setup.py'&quot;'&quot;';f = getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__) if os.path.exists(__file__) else io.StringIO('&quot;'&quot;'from setuptools import setup; setup()'&quot;'&quot;');code = f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record /private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-record-bkv6xrzk/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/scipy Check the logs for full command output."><pre class="notranslate">ollecting scipy==1.7.0
  Using cached scipy-1.7.0.tar.gz (36.1 MB)
  Preparing metadata (setup.py) ... <span class="pl-k">done</span>
Requirement already satisfied: numpy<span class="pl-k">&lt;</span>1.23.0,<span class="pl-k">&gt;</span>=1.16.5 <span class="pl-k">in</span> /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages (from scipy==1.7.0) (1.21.4)
Building wheels <span class="pl-k">for</span> collected packages: scipy
  Building wheel <span class="pl-k">for</span> scipy (setup.py) ... error
  ERROR: Command errored out with <span class="pl-c1">exit</span> status 1:
   command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c <span class="pl-s"><span class="pl-pds">'</span>import io, os, sys, setuptools, tokenize; sys.argv[0] = <span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>/private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/setup.py<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>; __file__=<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>/private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/setup.py<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>;f = getattr(tokenize, <span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>open<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>, open)(__file__) if os.path.exists(__file__) else io.StringIO(<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>from setuptools import setup; setup()<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>);code = f.read().replace(<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>\r\n<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>\n<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>);f.close();exec(compile(code, __file__, <span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>exec<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>))<span class="pl-pds">'</span></span> bdist_wheel -d /private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-wheel-uozvxwo6
       cwd: /private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/



 error: Command "ar rcs build/temp.macosx-10.9-universal2-3.9/libsc_cephes.a build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/scipy_iv.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/shichi.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/sici.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/sindg.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/sinpi.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/spence.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/stdtr.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/struve.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/tandg.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/tukey.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/unity.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/yn.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/yv.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/zeta.o build/temp.macosx-10.9-universal2-3.9/scipy/special/cephes/zetac.o" failed with exit status 1
    
    <span class="pl-c"><span class="pl-c">#</span>########## CLIB COMPILER OPTIMIZATION ###########</span>
    Platform      <span class="pl-c1">:</span>
      Architecture: unsupported
      Compiler    <span class="pl-c1">:</span> gcc
    
    CPU baseline  <span class="pl-c1">:</span>
      Requested   <span class="pl-c1">:</span> optimization disabled
      Enabled     <span class="pl-c1">:</span> none
      Flags       <span class="pl-c1">:</span> none
      Extra checks: none
      Requested   <span class="pl-c1">:</span> optimization disabled
    
    CPU dispatch  <span class="pl-c1">:</span>
      Enabled     <span class="pl-c1">:</span> none
      Generated   <span class="pl-c1">:</span> none
    CCompilerOpt.cache_flush[809] <span class="pl-c1">:</span> write cache to path -<span class="pl-k">&gt;</span> /private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/build/temp.macosx-10.9-universal2-3.9/ccompiler_opt_cache_clib.py
    ----------------------------------------
ERROR: Command errored out with <span class="pl-c1">exit</span> status 1: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9 -u -c <span class="pl-s"><span class="pl-pds">'</span>import io, os, sys, setuptools, tokenize; sys.argv[0] = <span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>/private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/setup.py<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>; __file__=<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>/private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-install-otct1we2/scipy_443d1f5e1f1e403f84a3325c1b1e3401/setup.py<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>;f = getattr(tokenize, <span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>open<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>, open)(__file__) if os.path.exists(__file__) else io.StringIO(<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>from setuptools import setup; setup()<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>);code = f.read().replace(<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>\r\n<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>\n<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>);f.close();exec(compile(code, __file__, <span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>exec<span class="pl-pds">'</span></span><span class="pl-s"><span class="pl-pds">"</span>'<span class="pl-pds">"</span></span><span class="pl-s"><span class="pl-pds">'</span>))<span class="pl-pds">'</span></span> install --record /private/var/folders/lx/_pkqc2sj3x9g0yfndm_4n4vh0000gn/T/pip-record-bkv6xrzk/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/scipy Check the logs <span class="pl-k">for</span> full <span class="pl-c1">command</span> output.</pre></div>
<h3 dir="auto">SciPy/NumPy/Python version information</h3>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">print(numpy.<strong>version</strong>, sys.version_info) 1.21.4 sys.version_info(major=3, minor=9, micro=8, releaselevel='final', serial=0)</p>
</blockquote>
</blockquote>
</blockquote>