<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Only heard crickets on this one :-)
<div class=""><br class="">
</div>
<div class="">I’ve spent some time looking into this and here’s some of what I've discovered so far (I was jumping between OSX and Win10):</div>
<div class=""><br class="">
</div>
<div class="">1) Stay away from trying to mix Anaconda/conda Python distribution with any other Python distro (including PV’s) [1]</div>
<div class=""><br class="">
</div>
<div class="">2) Use/install a Python from <a href="http://python.org" class="">python.org</a> that has â€˜pip’ installed (e.g. 2.7.14) and then run:</div>
<div class="">$ python -m pip install scipy  </div>
<div class=""><br class="">
</div>
<div class="">Note, attempting this with pvpython doesn’t work:</div>
<span class="">$ pvpython -m pip install scipy<br class="">
Got unknown argument: -m</span>
<div class=""><span class=""><br class="">
</span></div>
<div class=""><span class="">3) Ensure pvpython’s sys.path points to *all* relevant dirs containing all necessary scipy-related dependencies in the above installation. Hopefully it gets picked up automatically if it’s a default system install. Alternatively,
 I *think* I was able to manually copy the scipy and numpy folders from the system install into the appropriate PV Python folder (on Windows anyway).</span></div>
<div class=""><span class=""><br class="">
</span></div>
<div class=""><span class="">4) This all feels very fragile.</span></div>
<div class=""><span class=""><br class="">
</span></div>
<div class=""><span class="">5) I briefly tinkered with </span>conda-forge and building PV from source, then backed out.</div>
<div class=""><span class=""><br class="">
</span></div>
<div class=""><span class="">6) About the time I figure out a reasonably good solution, a new version of PV supporting Python3 and pip will come out making life wonderfully simple</span>…</div>
<div class=""><span class=""><br class="">
</span></div>
<div class=""><span class="">Comments very much welcome.</span></div>
<div class=""><span class=""><br class="">
</span></div>
<div class=""><span class="">-Randy<br class="">
</span><span class=""><br class="">
</span><span class=""><br class="">
</span>
<div class="">[1] <a href="https://groups.google.com/a/continuum.io/forum/#!topic/conda/ozG_nTuQQYk" class="">https://groups.google.com/a/continuum.io/forum/#!topic/conda/ozG_nTuQQYk</a> </div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Dec 12, 2017, at 10:37 PM, Heiland, Randy <<a href="mailto:heiland@iu.edu" class="">heiland@iu.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Any good advice for installing additional 3rd party modules for pvpython?  In a Programmable Source I’d written to read in MATLAB (.mat) data files, I was using the scipy module (scipy.io.loadmat). When I wrote that, I naively thought to myself
 - WOW, it sure was convenient that they included scipy as a 3rd party pkg in pvpython! Turns out, I was of course picking it up from another Python 2.7 distro. I only discovered this while testing on another OS (without any Python).<br class="">
<br class="">
So, have others found themselves in a similar situation? I realize the hurdle depends on the module itself and, in this case, scipy is not trivial. Right now, I’m thinking maybe requesting that users install Miniconda 2.7 and grow from there, which presumably
 pvpython could use. Thoughts?<br class="">
<br class="">
-Randy<br class="">
_______________________________________________<br class="">
Powered by <a href="http://www.kitware.com" class="">www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" class="">
http://www.kitware.com/opensource/opensource.html</a><br class="">
<br class="">
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" class="">
http://paraview.org/Wiki/ParaView</a><br class="">
<br class="">
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" class="">
http://markmail.org/search/?q=ParaView</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="http://public.kitware.com/mailman/listinfo/paraview" class="">http://public.kitware.com/mailman/listinfo/paraview</a><br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>