Hi, is there a possibility to use (or to install) the module linalg of scipy?
Hi, I managed to install part of the sparse linear algebra with pip (C:\Python27\ArcGIS10.4\Scripts\pip). Some packages are missed (lapack/blas related) but it works and for the moment I'm satisfied. Thanks again for the support.Best regards
hmmm because I installed ArcGIS Pro ... even if you have no intention of using it
Dan demos <SPAN class="keyword token">in</SPAN> python <SPAN class="number token">3.4</SPAN> Date<SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN><SPAN class="punctuation token">.</SPAN> <SPAN class="operator token">>></SPAN><SPAN class="operator token">></SPAN> <SPAN class="keyword token">import</SPAN> scipy<SPAN class="punctuation token">.</SPAN>linalg <SPAN class="keyword token">as</SPAN> sl <SPAN class="operator token">>></SPAN><SPAN class="operator token">></SPAN> dir<SPAN class="punctuation token">(</SPAN>sl<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">>></SPAN><SPAN class="operator token">></SPAN> len<SPAN class="punctuation token">(</SPAN>dir<SPAN class="punctuation token">(</SPAN>sl<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="number token">132</SPAN> <SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
here is an example on my system on one computer
C:\Python27\ArcGIS10.4\Lib\site-packages\scipy\linalg
C:\Python34\Lib\site-packages\scipy\linalg
Hi, thanks for the answer. In my problem I have a large sparse linear system to solve, where the matrix is already implemented using scipy.sparse. However in my version of ArcGIS (License type: Advanced) the module for sparse linear solvers is not included. My solution now is to convert the matrix as a dense numpy matrix and use the tools in numpy.linalg. This is only a partial solution because when I'll need to solve bigger problem I really need the full scipy package.
PS Version 10.4.0.5524
Not alone, but the code is here scipy/scipy/linalg at master · scipy/scipy · GitHub
What is it exactly do you need since the vast majority of the functionality in that module can be pulled from numpy which is already installed and in use for arcmap. If you install arcgis pro then scipy is also available directly.
So what is you need exactly and I can simplify the route to take.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.