<div dir="ltr">Hi,<div><br></div><div>Sorry if this question is redundant. I checked the "install" page in the SciPy docs, and couldn't find any mention of conda-forge.</div><div><br></div><div>Can SciPy from pip (<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">scipy-1.0.1-cp36-none-win_amd64.whl</span>) be used with the numpy-feedstock from conda-forge? When I run the tests for scipy, the fail and hang after "scipy\linalg\tests\test_basic.py".</div><div><br></div><div>The reason I thought this might work is because they both use a variant of OpenBLAS, but perhaps they are not compatible? I can see that NumPy openblas.dll is in miniconda/envs/<envname>/Library/bin (31,053KB) where as the SciPy openblas.dll is in site-packages/scipy/extra-dll (41,762KB) and the name is vendorized with a long alphanumeric string.</div><div><br></div><div>Unfortunately if I try to use conda to install SciPy, conda uses the default "anaconda" channel, because win_amd64 conda-forge scipy-feedstock has been disabled, and when I run the tests using this mix of conda-forge:numpy and anaconda:scipy, I get the same failure at <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">"scipy\linalg\tests\test_basic.py", which I would expect because the anaconda:scipy uses Intel-MKL not OpenBLAS, and I think these libraries need to be compatible for scipy to work, right?</span></div><div><br></div><div>The test that fails is "TestDet.test_random()"</div><div><br></div><div><div>scipy/linalg/tests/test_basic.py::TestDet::test_random FAILED [ 54%]</div><div><br></div><div>this is the pytest traceback:</div><div><br></div><div><div>---------------------------------------------------------------------------</div><div>AssertionError Traceback (most recent call last)</div><div><ipython-input-3-ff0509141d7f> in <module>()</div><div>----> 1 test_det.test_random()</div><div><br></div><div>~\AppData\Local\Continuum\miniconda3\envs\forge\lib\site-packages\scipy\linalg\tests\test_basic.py in test_random(self)</div><div> 907 d1 = det(a)</div><div> 908 d2 = basic_det(a)</div><div>--> 909 assert_almost_equal(d1, d2)</div><div> 910</div><div> 911 def test_random_complex(self):</div><div><br></div><div>~\AppData\Local\Continuum\miniconda3\envs\forge\lib\site-packages\numpy\testing\nose_tools\utils.py in assert_almost_equal(actual, desired, decimal, err_msg, verbose)</div><div> 579 pass</div><div> 580 if abs(desired - actual) >= 1.5 * 10.0**(-decimal):</div><div>--> 581 raise AssertionError(_build_err_msg())</div><div> 582</div><div> 583</div><div><br></div><div>AssertionError:</div><div>Arrays are not almost equal to 7 decimals</div><div> ACTUAL: 0.001303440758814572</div><div> DESIRED: -0.09307217461347188</div></div><div><br></div><div>Then the next test hangs for several minute, and I have to kill the process.</div><div><br></div><div>scipy/linalg/tests/test_basic.py::TestDet::test_random_complex</div></div><div><br></div><div>It also hangs when I call it directly from an interpreter.</div><div><br></div><div>If I use just pip to install both numpy (numpy-1.14.2-cp36-none-win_amd64.whl) and scipy <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">(</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;background-color:rgb(255,255,255);float:none;display:inline">scipy-1.0.1-cp36-none-win_amd64.whl</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">)<span> then all of the tests pass. And now I can see the vendorized version of openBLAS for numpy in site-packags/numpy/.libs (41762KB) matches the openBLAS in scipy/extra-dll, the vendor alpha-numeric string is also the same: "</span></span>BNVRK7633HSX7YVO2TADGR4A5KEKXJAW"</div><div><br></div><div>Maybe this is very basic, and I shouldn't be asking. But I don't understand how to use conda-forge then with SciPy and NumPy on Windows. It seems like users should only use all pip or only the default "anaconda" channel. Or if using conda-forge on window, then only use NumPy without SciPy, but that also means other packages like statsmodels are out too. Also maybe this is a question for conda-forge and not scipy-dev. Again, so sorry if my question is out of place.</div><div><br></div><div>I'm also sorry if this is received poorly. I am so happy and very grateful for all of the volunteer work that has gone into making SciPy and NumPy work on Windows. I remember the old days when I had to refer people to cgohlke's website. If there is anything I can do to help, I can try. I will take a look at reactivating the conda-forge build for win_amd64, I believe that would solve the problem. Also I will bring up the issue of dependency clashes with conda-forge as well.</div><div><br></div><div>Thanks,</div><div>Mark</div><div><br></div><div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><span style="font-size:12.8px">Mark Mikofski, PhD (2005)</span><br></div><div><span style="font-size:12.8px"><i>Fiat Lux</i></span><br></div></div></div></div>
</div></div>